diff options
author | Marius Halden <marius.h@lden.org> | 2016-11-19 10:30:19 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-11-19 10:30:19 +0100 |
commit | ad5637a3fe2f8e25a88d910041791336e0c62271 (patch) | |
tree | 6625ce9631712766a722030116c20c83598524e6 /protocols/twitter | |
parent | af800c35a3927638914bd9c2aed60ad04694b34e (diff) |
Fix broken noretweet support
Diffstat (limited to 'protocols/twitter')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index a0580ed9..59e7bfdd 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -457,7 +457,6 @@ static void twitter_http_get_noretweets_ids(struct http_request *req) json_value *parsed; struct twitter_xml_list *txl; struct twitter_data *td; - GSList *elem; // Check if the connection is stil active if (!g_slist_find(twitter_connections, ic)) { @@ -487,15 +486,10 @@ static void twitter_http_get_noretweets_ids(struct http_request *req) if (c->type != json_integer) { continue; } - txl->list = g_slist_prepend(txl->list, - g_strdup_printf("%"PRIu64, c->u.integer)); + g_hash_table_add(td->noretweets_ids, g_strdup_printf("%"PRIu64, c->u.integer)); } } - for (elem = txl->list; elem; elem = elem->next) { - g_hash_table_add(td->noretweets_ids, elem->data); - } - json_value_free(parsed); txl_free(txl); |