]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Quick hack to discard twitter broadcast queue items on failure *IF* config option...
authorBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 20:11:37 +0000 (12:11 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 20:11:37 +0000 (12:11 -0800)
$config['twitter']['ignore_errors'] = true;

A longer-term solution is to patch up the indirect retry handling to count retries better, or delay for later retry sensibly.

plugins/TwitterBridge/twitterqueuehandler.php

index b5a624e83d928815ad3c5cee1396ba16f2dae637..644ce17871eb83b6a14ead9a88fd8c4b8fa3235a 100644 (file)
@@ -30,6 +30,7 @@ class TwitterQueueHandler extends QueueHandler
 
     function handle($notice)
     {
-        return broadcast_twitter($notice);
+        $ok = broadcast_twitter($notice);
+        return $ok || common_config('twitter', 'ignore_errors');
     }
 }