Browse Source

Exempt staff members from spam check (#12874)

Consider admins and moderators as trusted, for the purpose of the
spam checker.

Fixes #12872
master
ThibG 4 years ago
committed by Eugen Rochko
parent
commit
345bba4812
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/spam_check.rb

+ 1
- 1
app/lib/spam_check.rb View File

@ -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?

Loading…
Cancel
Save