From db4d69f09953ddf89d6c970b40ca6a4094bf6e52 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 7 Dec 2010 12:11:37 -0800 Subject: [PATCH] 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. --- plugins/TwitterBridge/twitterqueuehandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } } -- 2.39.5