aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-07-25 04:39:10 -0300
committerdequis <dx@dxzone.com.ar>2016-07-25 20:42:32 -0300
commitdc45a85c1996169df4517dc9bb7f7368cb176de5 (patch)
tree53a3599a6a1d2051274c61244807f227c14a3ff2
parent57f81ec3befe532d0533938efcfc650d80310f61 (diff)
twitter: don't hard-fail with mutes or noretweets (for "identica")
Fixes trac ticket 1254 Kinda dirty but better than keeping it broken.
-rw-r--r--protocols/twitter/twitter_lib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index 77f487ae..41d95db8 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -383,6 +383,11 @@ static void twitter_http_get_mutes_ids(struct http_request *req)
td = ic->proto_data;
+ if (req->status_code != 200) {
+ /* Fail silently */
+ return;
+ }
+
// Parse the data.
if (!(parsed = twitter_parse_response(ic, req))) {
return;
@@ -421,6 +426,11 @@ static void twitter_http_get_noretweets_ids(struct http_request *req)
return;
}
+ if (req->status_code != 200) {
+ /* Fail silently */
+ return;
+ }
+
td = ic->proto_data;
// Parse the data.