From: Brion Vibber Date: Tue, 7 Dec 2010 20:11:37 +0000 (-0800) Subject: Quick hack to discard twitter broadcast queue items on failure *IF* config option... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=db4d69f09953ddf89d6c970b40ca6a4094bf6e52;p=quix0rs-gnu-social.git Quick hack to discard twitter broadcast queue items on failure *IF* config option 'twitter' 'ignore_errors' is on: $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. --- diff --git a/plugins/TwitterBridge/twitterqueuehandler.php b/plugins/TwitterBridge/twitterqueuehandler.php index b5a624e83d..644ce17871 100644 --- a/plugins/TwitterBridge/twitterqueuehandler.php +++ b/plugins/TwitterBridge/twitterqueuehandler.php @@ -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'); } }