lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.96 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.97
- old
+ new
@@ -49,10 +49,13 @@
super
end
end
def access(*keys)
- raw.dig *keys
+ keys.reduce(raw) do |memo, key|
+ next unless memo
+ memo[key] || memo[key.to_s]
+ end
end
def tweet
if twitter_api_credentials_present?
client.prettify_tweet(raw)