Ver a proveniência

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 há 4 anos
committed by Eugen Rochko
ascendente
cometimento
345bba4812
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      app/lib/spam_check.rb

+ 1
- 1
app/lib/spam_check.rb Ver ficheiro

@@ -143,7 +143,7 @@ class SpamCheck
end end


def trusted? def trusted?
@account.trust_level > Account::TRUST_LEVELS[:untrusted]
@account.trust_level > Account::TRUST_LEVELS[:untrusted] || (@account.local? && @account.user_staff?)
end end


def no_unsolicited_mentions? def no_unsolicited_mentions?


Carregando…
Cancelar
Guardar