diff options
author | Marius Halden <marius.h@lden.org> | 2017-04-01 19:13:32 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-04-01 19:35:31 +0200 |
commit | febcb6dca01bb17e0197770a0e6596aaa98bcdbd (patch) | |
tree | 22d9a0f422c3f2f625b2a2ff7492b68a15f58d1a /protocols/twitter/twitter_lib.c | |
parent | 395b95a7d6df6c857e543fad47124cddda6d21d5 (diff) |
Use auto_populate_reply_metadata for twitter reply
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 303523b2..6b2461fe 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -1745,14 +1745,16 @@ static void twitter_http_post(struct http_request *req) */ void twitter_post_status(struct im_connection *ic, char *msg, guint64 in_reply_to) { - char *args[4] = { + char *args[6] = { "status", msg, "in_reply_to_status_id", - g_strdup_printf("%" G_GUINT64_FORMAT, in_reply_to) + g_strdup_printf("%" G_GUINT64_FORMAT, in_reply_to), + "auto_populate_reply_metadata", + "true", }; twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1, - args, in_reply_to ? 4 : 2); + args, in_reply_to ? (set_getbool(&ic->acc->set, "autofill_reply") ? 6 : 4) : 2); g_free(args[3]); } |