Fix allowlist federation with subdomains

master
noiob 2019-11-21 07:43:32 +01:00
parent 53eabcb0de
commit 5a55667a78
1 changed files with 1 additions and 1 deletions

View File

@ -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