Fix add InvalidURIError handler to TagManager
This commit is contained in:
parent
3a9977ed5d
commit
1f66fa7b5d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue