Changeset 952e264 for protocols/twitter


Ignore:
Timestamp:
2017-04-11T23:44:58Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
bdf9214
Parents:
0515063
Message:

twitter: experimental support for place_id

Location:
protocols/twitter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r0515063 r952e264  
    576576        s->flags |= SET_HIDDEN | SET_NOSAVE;
    577577
     578        s = set_add(&acc->set, "in_korea", "false", set_eval_bool, acc);
     579        s->flags |= SET_HIDDEN;
     580
    578581        if (strcmp(acc->prpl->name, "twitter") == 0) {
    579582                s = set_add(&acc->set, "stream", "true", set_eval_bool, acc);
  • protocols/twitter/twitter_lib.c

    r0515063 r952e264  
    16901690        };
    16911691
     1692        if (set_getbool(&ic->acc->set, "in_korea") && !in_reply_to) {
     1693                g_free(args[3]);
     1694                args[2] = "place_id";
     1695                args[3] = g_strdup("c999e6a453e9ef72");
     1696                in_reply_to = 1;
     1697        }
     1698
    16921699        twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1,
    16931700                     args, in_reply_to ? 4 : 2);
Note: See TracChangeset for help on using the changeset viewer.