From ad5637a3fe2f8e25a88d910041791336e0c62271 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sat, 19 Nov 2016 10:30:19 +0100 Subject: Fix broken noretweet support --- protocols/twitter/twitter_lib.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'protocols') 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); -- cgit v1.2.3