lib/onebox/engine/twitter_status_onebox.rb in onebox-2.2.8 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-2.2.9
- old
+ new
@@ -15,10 +15,10 @@
end
private
def get_twitter_data
- response = Onebox::Helpers.fetch_response(url, nil, nil, http_params) rescue nil
+ response = Onebox::Helpers.fetch_response(url, headers: http_params) rescue nil
html = Nokogiri::HTML(response)
twitter_data = {}
html.css('meta').each do |m|
if m.attribute('property') && m.attribute('property').to_s.match(/^og:/i)
m_content = m.attribute('content').to_s.strip