diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-02 22:00:12 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-02 22:00:12 -0600 |
commit | 053c748b310f7caace6255007d64cb817f277517 (patch) | |
tree | 08ab05871b2ca6212b9170576eb80115d11d8a95 /app | |
parent | 29c54ac59b15cf643ac30e7178642e0aa6b6aac8 (diff) |
user invitations should now (by)pass the spam check
Diffstat (limited to 'app')
-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 |