Changeset 5f1e78d for protocols/twitter


Ignore:
Timestamp:
2011-08-17T21:58:21Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
aa2f575
Parents:
3d952b5 (diff), d6b6906 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

To reduce ambiguity, allow using a # to specify Tweet ID's when doing retweets.
Patch from Jasper Spaans.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r3d952b5 r5f1e78d  
    491491                guint64 id;
    492492
    493                 if ((bu = bee_user_by_handle(ic->bee, ic, cmd[1])) &&
     493                if (g_str_has_prefix(cmd[1], "#")) {
     494                        id = g_ascii_strtoull(cmd[1] + 1, NULL, 10);
     495                        if (id < TWITTER_LOG_LENGTH && td->log)
     496                                id = td->log[id].id;
     497                } else if ((bu = bee_user_by_handle(ic->bee, ic, cmd[1])) &&
    494498                    (tud = bu->data) && tud->last_id)
    495499                        id = tud->last_id;
Note: See TracChangeset for help on using the changeset viewer.