lib/onebox/engine/standard_embed.rb in onebox-2.2.12 vs lib/onebox/engine/standard_embed.rb in onebox-2.2.13

- old
+ new

@@ -35,11 +35,11 @@ def always_https? AllowlistedGenericOnebox.host_matches(uri, AllowlistedGenericOnebox.https_hosts) || super end def raw - return @raw if @raw + return @raw if defined?(@raw) og = get_opengraph twitter = get_twitter oembed = get_oembed @@ -65,10 +65,10 @@ end protected def html_doc - return @html_doc if @html_doc + return @html_doc if defined?(@html_doc) headers = nil headers = { 'Cookie' => options[:cookie] } if options[:cookie] @html_doc = Onebox::Helpers.fetch_html_doc(url, headers)