mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 09:08:24 +00:00
Fix whitelist federation for subdomains (#12435)
This commit is contained in:
parent
5605b828e5
commit
5bc4edd078
|
@ -6,7 +6,7 @@ module DomainControlHelper
|
|||
|
||||
domain = begin
|
||||
if uri_or_domain.include?('://')
|
||||
Addressable::URI.parse(uri_or_domain).domain
|
||||
Addressable::URI.parse(uri_or_domain).host
|
||||
else
|
||||
uri_or_domain
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue