Skip to content
Snippets Groups Projects
Commit 7e6af854 authored by Patricio Cano's avatar Patricio Cano
Browse files

Also check if Akismet is enabled, before showing the `Submit as spam` button.

parent 148b8487
Branches
Tags
1 merge request!5948Also check if Akismet is enabled, before showing the `Submit as spam` button.
Pipeline #
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment