Fix add InvalidURIError handler to TagManager

This commit is contained in:
noellabo 2022-08-05 10:09:01 +09:00
parent 3a9977ed5d
commit 1f66fa7b5d

View file

@ -167,6 +167,8 @@ class ActivityPub::TagManager
host = "#{host}:#{uri.port}" if uri.port
!host.nil? && (::TagManager.instance.local_domain?(host) || ::TagManager.instance.web_domain?(host))
rescue Addressable::URI::InvalidURIError
return false
end
def uri_to_local_id(uri, param = :id)