Skip to content
Snippets Groups Projects
Commit 4edf9d84 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Make ActivityPub::TagManager#local_uri? recognize local URIs with ports (#4628)

parent 10489b4e
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,10 @@ class ActivityPub::TagManager
end
def local_uri?(uri)
host = Addressable::URI.parse(uri).normalized_host
uri = Addressable::URI.parse(uri)
host = uri.normalized_host
host = "#{host}:#{uri.port}" if uri.port
!host.nil? && (::TagManager.instance.local_domain?(host) || ::TagManager.instance.web_domain?(host))
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment