Changes in protocols/twitter/twitter_lib.c [d11822a:58d285a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
rd11822a r58d285a 234 234 if ((ret = json_parse(req->reply_body, req->body_size)) == NULL) { 235 235 imcb_error(ic, "Could not retrieve %s: %s", 236 path, " JSONparse error");236 path, "XML parse error"); 237 237 } 238 238 return ret; … … 308 308 309 309 txl->list = g_slist_prepend(txl->list, 310 g_strdup_printf("%" PRI d64, c->u.array.values[i]->u.integer));310 g_strdup_printf("%" PRIu64, c->u.array.values[i]->u.integer)); 311 311 } 312 312 … … 441 441 txl = g_new0(struct twitter_xml_list, 1); 442 442 txl->list = td->noretweets_ids; 443 443 444 444 // Process the retweet ids 445 445 txl->type = TXL_ID; … … 452 452 } 453 453 txl->list = g_slist_prepend(txl->list, 454 g_strdup_printf("%" PRId64, c->u.integer));454 g_strdup_printf("%"PRIu64, c->u.integer)); 455 455 } 456 456 } … … 710 710 return; 711 711 if ((quoted = json_o_get(node, "quoted_status")) && quoted->type == json_object) { 712 /* New "retweets with comments" feature. Grab the 712 /* New "retweets with comments" feature. Note that this info 713 * seems to be included in the streaming API only! Grab the 713 714 * full message and try to insert it when we run into the 714 715 * Tweet entity. */ … … 750 751 char *pos, *new; 751 752 752 /* Skip if a required field is missing, if the t.co URL is not in fact 753 in the Tweet at all, or if the full-ish one *is* in it already 754 (dupes appear, especially in streaming API). */ 755 if (!kort || !disp || !(pos = strstr(*text, kort)) || strstr(*text, disp)) { 753 if (!kort || !disp || !(pos = strstr(*text, kort))) { 756 754 continue; 757 755 } … … 978 976 return; 979 977 } 980 978 981 979 /* Check this is not a tweet that should be muted */ 982 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, status->user->uid);980 uid_str = g_strdup_printf("%" PRIu64, status->user->uid); 983 981 984 982 if (g_slist_find_custom(td->mutes_ids, uid_str, (GCompareFunc)strcmp)) { … … 1170 1168 char *uid_str; 1171 1169 ut = twitter_xt_get_user(target); 1172 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, ut->uid);1170 uid_str = g_strdup_printf("%" PRIu64, ut->uid); 1173 1171 if (!(found = g_slist_find_custom(td->mutes_ids, uid_str, 1174 1172 (GCompareFunc)strcmp))) { … … 1177 1175 twitter_log(ic, "Muted user %s", ut->screen_name); 1178 1176 if (getenv("BITLBEE_DEBUG")) { 1179 fprintf(stderr, "New mute: %s %" G_GUINT64_FORMAT"\n",1177 fprintf(stderr, "New mute: %s %"PRIu64"\n", 1180 1178 ut->screen_name, ut->uid); 1181 1179 } … … 1184 1182 char *uid_str; 1185 1183 ut = twitter_xt_get_user(target); 1186 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, ut->uid);1184 uid_str = g_strdup_printf("%" PRIu64, ut->uid); 1187 1185 if ((found = g_slist_find_custom(td->mutes_ids, uid_str, 1188 1186 (GCompareFunc)strcmp))) { … … 1194 1192 twitter_log(ic, "Unmuted user %s", ut->screen_name); 1195 1193 if (getenv("BITLBEE_DEBUG")) { 1196 fprintf(stderr, "New unmute: %s %" G_GUINT64_FORMAT"\n",1194 fprintf(stderr, "New unmute: %s %"PRIu64"\n", 1197 1195 ut->screen_name, ut->uid); 1198 1196 } … … 1690 1688 }; 1691 1689 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 1699 1690 twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1, 1700 1691 args, in_reply_to ? 4 : 2);
Note: See TracChangeset
for help on using the changeset viewer.