about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-01-17 07:50:30 +0100
committerEugen Rochko <eugen@zeonfederated.com>2020-01-17 07:50:30 +0100
commit345bba481259a508f546cf6c506560e05cdeb1c6 (patch)
tree5e6e310d9e5ca983582d59e534763636619ce9ab /app/lib
parent827e590d8ecf3b736e7a0ee16c7962e1e1cb78bb (diff)
Exempt staff members from spam check (#12874)
Consider admins and moderators as trusted, for the purpose of the
spam checker.

Fixes #12872
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/spam_check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/spam_check.rb b/app/lib/spam_check.rb
index 5b40514fd..652d03615 100644
--- a/app/lib/spam_check.rb
+++ b/app/lib/spam_check.rb
@@ -143,7 +143,7 @@ class SpamCheck
   end
 
   def trusted?
-    @account.trust_level > Account::TRUST_LEVELS[:untrusted]
+    @account.trust_level > Account::TRUST_LEVELS[:untrusted] || (@account.local? && @account.user_staff?)
   end
 
   def no_unsolicited_mentions?