mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 07:21:51 +00:00
Fix failure when “Require a reason to join” is set with open registrations (#22127)
This commit is contained in:
parent
c52263f6f8
commit
ed07f10ca8
|
@ -516,7 +516,7 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def invite_text_required?
|
||||
Setting.require_invite_text && !invited? && !external? && !bypass_invite_request_check?
|
||||
Setting.require_invite_text && !open_registrations? && !invited? && !external? && !bypass_invite_request_check?
|
||||
end
|
||||
|
||||
def trigger_webhooks
|
||||
|
|
Loading…
Reference in New Issue
Block a user