about summary refs log tree commit diff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-17 21:09:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-17 21:09:15 +0200
commit7e2b6da57f7689757a50fa261c480445b1846703 (patch)
tree1c9ecca76fcf3ce743c372314188361e429ed1f1 /app/controllers/admin
parentfccd25cf5397f8c2ee2df98e0cc46be3c2b1ea5d (diff)
Add setting to disable the anti-spam (#11296)
* Add environment variable to disable the anti-spam

* Move antispam setting to admin settings

* Fix typo

* antispam → spam_check
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/dashboard_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb
index f23ed1508..e74e4755f 100644
--- a/app/controllers/admin/dashboard_controller.rb
+++ b/app/controllers/admin/dashboard_controller.rb
@@ -30,6 +30,7 @@ module Admin
       @trending_hashtags     = TrendingTags.get(7)
       @profile_directory     = Setting.profile_directory
       @timeline_preview      = Setting.timeline_preview
+      @spam_check_enabled    = Setting.spam_check_enabled
     end
 
     private