Changeset 0fff0b2 for protocols/twitter


Ignore:
Timestamp:
2011-08-27T10:18:45Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ff18fc1
Parents:
429a9b1
Message:

Just reconstruct all retweets instead of just the ones marked as truncated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r429a9b1 r0fff0b2  
    460460{
    461461        struct xt_node *child, *rt = NULL;
    462         gboolean truncated = FALSE;
    463462
    464463        // Walk over the nodes children.
     
    466465                if (g_strcasecmp("text", child->name) == 0) {
    467466                        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);
    470467                } else if (g_strcasecmp("retweeted_status", child->name) == 0) {
    471468                        rt = child;
     
    488485        }
    489486
    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) {
    492490                struct twitter_xml_status *rtxs = g_new0(struct twitter_xml_status, 1);
    493491                if (twitter_xt_get_status(rt, rtxs) != XT_HANDLED) {
Note: See TracChangeset for help on using the changeset viewer.