equal
deleted
inserted
replaced
23 return; |
23 return; |
24 end |
24 end |
25 |
25 |
26 local response = json.decode(response_body); |
26 local response = json.decode(response_body); |
27 if not response then return; end |
27 if not response then return; end |
|
28 if not response['data'] or not response['includes'] then return; end |
28 |
29 |
29 local tweet = response['data']; |
30 local tweet = response['data']; |
30 local author = response['includes']['users'][1]; |
31 local author = response['includes']['users'][1]; |
31 |
32 |
32 local to = room.jid |
33 local to = room.jid |