mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 00:11:35 +01:00
Make ActivityPub::TagManager#local_uri? recognize local URIs with ports (#4628)
This commit is contained in:
parent
10489b4e4a
commit
4edf9d849f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue