lib/onebox/engine/gfycat_onebox.rb in onebox-2.2.8 vs lib/onebox/engine/gfycat_onebox.rb in onebox-2.2.9
- old
+ new
@@ -61,10 +61,10 @@
@match ||= @url.match(/^https?:\/\/gfycat\.com\/(gifs\/detail\/)?(?<name>.+)/)
end
def nokogiri_page
@nokogiri_page ||= begin
- response = Onebox::Helpers.fetch_response(url, 10) rescue nil
+ response = Onebox::Helpers.fetch_response(url, redirect_limit: 10) rescue nil
Nokogiri::HTML(response)
end
end
def get_og_data