Преглед на файлове

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?


Зареждане…
Отказ
Запис