From 053c748b310f7caace6255007d64cb817f277517 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 2 Dec 2019 22:00:12 -0600 Subject: user invitations should now (by)pass the spam check --- app/models/user.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/user.rb') 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 -- cgit