Merge pull request #73 from bb010g/patch-1

Fix for Tweets without extended_entities
This commit is contained in:
Yago 2015-02-23 08:35:17 +01:00
commit 4fd8e7f983

View File

@ -47,7 +47,7 @@ function run(msg, matches)
-- remove images -- remove images
local images = {} local images = {}
if response.extended_entities.media then if response.extended_entities and response.extended_entities.media then
for k, v in pairs(response.extended_entities.media) do for k, v in pairs(response.extended_entities.media) do
local url = v.url local url = v.url
local pic = v.media_url local pic = v.media_url