Browse Source

raise-when-oembed-not-found (#2882)

master
masarakki 7 years ago
committed by Eugen Rochko
parent
commit
267ed3d74b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/lib/provider_discovery.rb

+ 1
- 0
app/lib/provider_discovery.rb View File

@@ -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…
Cancel
Save