diff options
author | dequis <dx@dxzone.com.ar> | 2017-04-11 20:44:58 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2017-04-11 20:44:58 -0300 |
commit | 952e264c39b7b69d96bd0b102a76504d9ac61bfa (patch) | |
tree | c889759f6b295f931d881c853273700f3d81ad57 /protocols/twitter/twitter_lib.c | |
parent | 051506399e1455d88f6179010129308c754be936 (diff) |
twitter: experimental support for place_id
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 96fa8360..761d74f7 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -1689,6 +1689,13 @@ void twitter_post_status(struct im_connection *ic, char *msg, guint64 in_reply_t g_strdup_printf("%" G_GUINT64_FORMAT, in_reply_to) }; + if (set_getbool(&ic->acc->set, "in_korea") && !in_reply_to) { + g_free(args[3]); + args[2] = "place_id"; + args[3] = g_strdup("c999e6a453e9ef72"); + in_reply_to = 1; + } + twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1, args, in_reply_to ? 4 : 2); g_free(args[3]); |