Changes in protocols/twitter/twitter_lib.c [58d285a:d11822a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r58d285a rd11822a 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, " XMLparse error");236 path, "JSON parse error"); 237 237 } 238 238 return ret; … … 308 308 309 309 txl->list = g_slist_prepend(txl->list, 310 g_strdup_printf("%" PRI u64, c->u.array.values[i]->u.integer));310 g_strdup_printf("%" PRId64, 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("%" PRIu64, c->u.integer));454 g_strdup_printf("%" PRId64, 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. Note that this info 713 * seems to be included in the streaming API only! Grab the 712 /* New "retweets with comments" feature. Grab the 714 713 * full message and try to insert it when we run into the 715 714 * Tweet entity. */ … … 751 750 char *pos, *new; 752 751 753 if (!kort || !disp || !(pos = strstr(*text, kort))) { 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)) { 754 756 continue; 755 757 } … … 976 978 return; 977 979 } 978 980 979 981 /* Check this is not a tweet that should be muted */ 980 uid_str = g_strdup_printf("%" PRIu64, status->user->uid);982 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, status->user->uid); 981 983 982 984 if (g_slist_find_custom(td->mutes_ids, uid_str, (GCompareFunc)strcmp)) { … … 1168 1170 char *uid_str; 1169 1171 ut = twitter_xt_get_user(target); 1170 uid_str = g_strdup_printf("%" PRIu64, ut->uid);1172 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, ut->uid); 1171 1173 if (!(found = g_slist_find_custom(td->mutes_ids, uid_str, 1172 1174 (GCompareFunc)strcmp))) { … … 1175 1177 twitter_log(ic, "Muted user %s", ut->screen_name); 1176 1178 if (getenv("BITLBEE_DEBUG")) { 1177 fprintf(stderr, "New mute: %s %" PRIu64"\n",1179 fprintf(stderr, "New mute: %s %"G_GUINT64_FORMAT"\n", 1178 1180 ut->screen_name, ut->uid); 1179 1181 } … … 1182 1184 char *uid_str; 1183 1185 ut = twitter_xt_get_user(target); 1184 uid_str = g_strdup_printf("%" PRIu64, ut->uid);1186 uid_str = g_strdup_printf("%" G_GUINT64_FORMAT, ut->uid); 1185 1187 if ((found = g_slist_find_custom(td->mutes_ids, uid_str, 1186 1188 (GCompareFunc)strcmp))) { … … 1192 1194 twitter_log(ic, "Unmuted user %s", ut->screen_name); 1193 1195 if (getenv("BITLBEE_DEBUG")) { 1194 fprintf(stderr, "New unmute: %s %" PRIu64"\n",1196 fprintf(stderr, "New unmute: %s %"G_GUINT64_FORMAT"\n", 1195 1197 ut->screen_name, ut->uid); 1196 1198 } … … 1688 1690 }; 1689 1691 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 1690 1699 twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1, 1691 1700 args, in_reply_to ? 4 : 2);
Note: See TracChangeset
for help on using the changeset viewer.