Also check if Akismet is enabled, before showing the Submit as spam
button.
This commit is contained in:
parent
148b8487b8
commit
7e6af85490
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module Spammable
|
|||
|
||||
def submittable_as_spam?
|
||||
if user_agent_detail
|
||||
user_agent_detail.submittable?
|
||||
user_agent_detail.submittable? && current_application_settings.akismet_enabled
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue