diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 427b32066..d0711c634 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -520,6 +520,8 @@ class User < ApplicationRecord end def detect_spam! + return false if valid_invitation? || external? + janitor = janitor_account || Account.representative intro = self.invite_request&.text |