Преглед изворни кода

Exempt staff members from spam check (#12874)

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

Fixes #12872
master^2
ThibG пре 4 година
committed by Eugen Rochko
родитељ
комит
345bba4812
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      app/lib/spam_check.rb

+ 1
- 1
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?


Loading…
Откажи
Сачувај