mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 18:21:37 +01:00
raise-when-oembed-not-found (#2882)
This commit is contained in:
parent
d3704fdb09
commit
267ed3d74b
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
|
|||
format ||= :xml if provider_endpoint
|
||||
end
|
||||
|
||||
raise OEmbed::NotFound, url if provider_endpoint.nil?
|
||||
begin
|
||||
provider_endpoint = Addressable::URI.parse(provider_endpoint)
|
||||
provider_endpoint.query = nil
|
||||
|
|
Loading…
Reference in a new issue