raise-when-oembed-not-found (#2882)
parent
25e2322ca1
commit
38d8eb7b97
|
@ -22,6 +22,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
|
||||||
format ||= :xml if provider_endpoint
|
format ||= :xml if provider_endpoint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
raise OEmbed::NotFound, url if provider_endpoint.nil?
|
||||||
begin
|
begin
|
||||||
provider_endpoint = Addressable::URI.parse(provider_endpoint)
|
provider_endpoint = Addressable::URI.parse(provider_endpoint)
|
||||||
provider_endpoint.query = nil
|
provider_endpoint.query = nil
|
||||||
|
|
Loading…
Reference in New Issue