hkaju/flockbot

in_reply_to_status_id doesn't seem to function

Closed this issue · 1 comments

Response from the bot doesn't show up as a proper response in the Twitter stream.

"created_at": "Sun Apr 26 19:28:44 +0000 2015",
"id": 592409996756910100,
"id_str": "592409996756910081",
"text": "@joonathan Best match for a meeting: Riga. Travel time/person: 2h, tickets: 1493 USD. More info at https://t.co/ZNPoNJkNre",
"source": "<a href="http://flock.teleport.org" rel="nofollow">Flock Us Up, Scotty</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": 640653,
"in_reply_to_user_id_str": "640653",
"in_reply_to_screen_name": "joonathan",

Both in_reply_to_status_id and in_reply_to_status_id_str show up as null's over Twitter's API to me.

https://github.com/hkaju/flockbot/blob/master/bot.js#L191
Might be worth checking if this should be stringified here?

hkaju commented

Yup, that fixed it. Thanks!