소스 검색

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?


불러오는 중...
취소
저장