Ignore:
Timestamp:
2012-11-25T00:55:47Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e9bdfbc
Parents:
5f2f728
Message:

Minor rework: Always fill td->log now and use it not just for show_ids, but
also for stream deduplication. Also, drop tweets from unknown people unless
fetch_mentions is set. The stream will feed us that spam either way but not
everyone wants to see it.

Last, fixing a bug where in streaming mode, per-user last tweet times were
no longer getting tracked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r5f2f728 rc9b5817  
    286286
    287287        s = set_add(&acc->set, "show_ids", "true", set_eval_bool, acc);
    288         s->flags |= ACC_SET_OFFLINE_ONLY;
    289288
    290289        s = set_add(&acc->set, "show_old_mentions", "20", set_eval_int, acc);
     
    363362        imcb_buddy_status(ic, name, OPT_LOGGED_IN, NULL, NULL);
    364363
    365         if (set_getbool(&acc->set, "show_ids"))
    366                 td->log = g_new0(struct twitter_log_data, TWITTER_LOG_LENGTH);
     364        td->log = g_new0(struct twitter_log_data, TWITTER_LOG_LENGTH);
     365        td->log_id = -1;
    367366
    368367        twitter_login_finish(ic);
Note: See TracChangeset for help on using the changeset viewer.