lib/onebox/engine/twitter_status_onebox.rb in onebox-1.5.18 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.5.19
- old
+ new
@@ -16,10 +16,10 @@
def client
Onebox.options.twitter_client
end
def raw
- if client
+ if client && !client.twitter_credentials_missing?
@raw ||= OpenStruct.new(client.status(match[:id]).to_hash)
else
super
end
end