lib/onebox/engine/imgur_onebox.rb in onebox-1.8.18 vs lib/onebox/engine/imgur_onebox.rb in onebox-1.8.19
- old
+ new
@@ -45,10 +45,10 @@
</div>
HTML
end
def is_album?
- response = Onebox::Helpers.fetch_response("http://api.imgur.com/oembed.json?url=#{url}") rescue "{}"
+ response = Onebox::Helpers.fetch_response("https://api.imgur.com/oembed.json?url=#{url}") rescue "{}"
oembed_data = Onebox::Helpers.symbolize_keys(::MultiJson.load(response))
imgur_data_id = Nokogiri::HTML(oembed_data[:html]).xpath("//blockquote").attr("data-id")
imgur_data_id.to_s[/a\//]
end