about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-02 22:00:12 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-02 22:00:12 -0600
commit053c748b310f7caace6255007d64cb817f277517 (patch)
tree08ab05871b2ca6212b9170576eb80115d11d8a95 /app/models
parent29c54ac59b15cf643ac30e7178642e0aa6b6aac8 (diff)
user invitations should now (by)pass the spam check
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb2
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