FIX: twitter onebox was unable to fetch data from API response

FIX: twitter onebox was unable to fetch data from API response

diff --git a/lib/onebox/engine/twitter_status_onebox.rb b/lib/onebox/engine/twitter_status_onebox.rb
index b78753c..0361c06 100644
--- a/lib/onebox/engine/twitter_status_onebox.rb
+++ b/lib/onebox/engine/twitter_status_onebox.rb
@@ -51,7 +51,10 @@ module Onebox
       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

GitHub sha: aacd97a0

@jcalvento note that the optimization you did here broke Twitter oneboxes that were using Twitter consumer key/secret to fetch data. Can you test the optimizations with Twitter consumer key/secret please?

@techAPJ sure, I can add the test. Any particular scenario? (failed trying to get any particular attribute?)

It was failing on sub for avatar. Also note that username and name was not getting fetched. I recommend setting up Twitter consumer key/secret on your dev instance for debugging.