diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 20:05:02 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:42 +0300 |
commit | fa030cbc85470edbff8e8c225a9fc7d6e52bfa9b (patch) | |
tree | 68286f885e8133f9c966655d2ce6d7477ec4df6e /app | |
parent | 1c0def2a769befa3f0e3c8654e723645b8625117 (diff) |
replace `is_spam?` with `spam?`
Diffstat (limited to 'app')
-rw-r--r-- | app/services/akismet_service.rb | 2 | ||||
-rw-r--r-- | app/services/spam_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/akismet_service.rb b/app/services/akismet_service.rb index 59153cbbc0a..7b5482b3cd1 100644 --- a/app/services/akismet_service.rb +++ b/app/services/akismet_service.rb @@ -7,7 +7,7 @@ class AkismetService @options = options end - def is_spam? + def spam? return false unless akismet_enabled? params = { diff --git a/app/services/spam_service.rb b/app/services/spam_service.rb index 3e65b7d31a3..73ea3018fbd 100644 --- a/app/services/spam_service.rb +++ b/app/services/spam_service.rb @@ -45,7 +45,7 @@ class SpamService def check(api) return false unless request && check_for_spam? - return false unless akismet.is_spam? + return false unless akismet.spam? create_spam_log(api) true |