diff options
Diffstat (limited to 'app/services/snippets/create_service.rb')
-rw-r--r-- | app/services/snippets/create_service.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/services/snippets/create_service.rb b/app/services/snippets/create_service.rb index d9a46890c45..6d3b63de9fd 100644 --- a/app/services/snippets/create_service.rb +++ b/app/services/snippets/create_service.rb @@ -20,14 +20,12 @@ module Snippets @snippet.author = current_user - if Feature.enabled?(:snippet_spam) - Spam::SpamActionService.new( - spammable: @snippet, - spam_params: spam_params, - user: current_user, - action: :create - ).execute - end + Spam::SpamActionService.new( + spammable: @snippet, + spam_params: spam_params, + user: current_user, + action: :create + ).execute if save_and_commit UserAgentDetailService.new(spammable: @snippet, spam_params: spam_params).create |