mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Currently any spam detected by Akismet by non-members via API will be logged in a separate table in the admin page. Closes #5612
14 lines
337 B
Ruby
14 lines
337 B
Ruby
class CreateSpamLogService < BaseService
|
|
def initialize(project, user, params)
|
|
super(project, user, params)
|
|
end
|
|
|
|
def execute
|
|
spam_params = params.merge({ user_id: @current_user.id,
|
|
project_id: @project.id } )
|
|
spam_log = SpamLog.new(spam_params)
|
|
spam_log.save
|
|
spam_log
|
|
end
|
|
end
|