This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Exempt staff members from spam check (
#12874
)
Consider admins and moderators as trusted, for the purpose of the spam checker.
Fixes
#12872
closed-social-v3
ThibG
4 years ago
committed by
Eugen Rochko
parent
827e590d8e
commit
345bba4812
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/lib/spam_check.rb
+ 1
- 1
app/lib/spam_check.rb
View File
@ -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?
Write
Preview
Loading…
Cancel
Save