瀏覽代碼

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

master
masarakki 7 年之前
committed by Eugen Rochko
父節點
當前提交
267ed3d74b
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      app/lib/provider_discovery.rb

+ 1
- 0
app/lib/provider_discovery.rb 查看文件

@@ -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…
取消
儲存