diff options
author | Brion Vibber <brion@pobox.com> | 2010-12-07 12:11:37 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-12-07 12:11:37 -0800 |
commit | db4d69f09953ddf89d6c970b40ca6a4094bf6e52 (patch) | |
tree | 0d6f8e8012f8b735c71f3edf5ca033583de0c95d | |
parent | 76f3dc32e0e1aa933931b7cc59030ae20bb4f89b (diff) |
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.
-rw-r--r-- | plugins/TwitterBridge/twitterqueuehandler.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TwitterBridge/twitterqueuehandler.php b/plugins/TwitterBridge/twitterqueuehandler.php index b5a624e83..644ce1787 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'); } } |