Changeset 0fff0b2
- Timestamp:
- 2011-08-27T10:18:45Z (13 years ago)
- Branches:
- master
- Children:
- ff18fc1
- Parents:
- 429a9b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r429a9b1 r0fff0b2 460 460 { 461 461 struct xt_node *child, *rt = NULL; 462 gboolean truncated = FALSE;463 462 464 463 // Walk over the nodes children. … … 466 465 if (g_strcasecmp("text", child->name) == 0) { 467 466 txs->text = g_memdup(child->text, child->text_len + 1); 468 } else if (g_strcasecmp("truncated", child->name) == 0 && child->text) {469 truncated = bool2int(child->text);470 467 } else if (g_strcasecmp("retweeted_status", child->name) == 0) { 471 468 rt = child; … … 488 485 } 489 486 490 /* If it's a truncated retweet, get the original because dots suck. */ 491 if (truncated && rt) { 487 /* If it's a (truncated) retweet, get the original. Even if the API claims it 488 wasn't truncated because it may be lying. */ 489 if (rt) { 492 490 struct twitter_xml_status *rtxs = g_new0(struct twitter_xml_status, 1); 493 491 if (twitter_xt_get_status(rt, rtxs) != XT_HANDLED) {
Note: See TracChangeset
for help on using the changeset viewer.