mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-02 21:23:18 +00:00
Exempt staff members from spam check (#12874)
Consider admins and moderators as trusted, for the purpose of the spam checker. Fixes #12872
This commit is contained in:
parent
827e590d8e
commit
345bba4812
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue