summaryrefslogtreecommitdiff
path: root/app/services/spam_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/spam_service.rb')
-rw-r--r--app/services/spam_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/spam_service.rb b/app/services/spam_service.rb
index f2f133dae28..babe69cfdc8 100644
--- a/app/services/spam_service.rb
+++ b/app/services/spam_service.rb
@@ -37,7 +37,8 @@ class SpamService
else
# Otherwise, it goes to Akismet and check if it's a spam. If that's the
# case, it assigns spammable record as "spam" and create a SpamLog record.
- spammable.spam = check(api)
+ possible_spam = check(api)
+ spammable.spam = possible_spam unless spammable.allow_possible_spam?
spammable.spam_log = spam_log
end
end