diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-03 16:58:45 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-03 16:58:45 -0700 |
commit | 5f4c6ec626d3d641f0712b276deb32b218b7a330 (patch) | |
tree | 8d27dacccdcb671822ee2b7c6f262c3bed3feddc /plugins/TwitterBridge/TwitterBridgePlugin.php | |
parent | 791b98046d2c81aecfa468c06d4b7fd1f06ea8fa (diff) |
Skip enqueueing to outgoing bridges on incoming remote messages. Twitter, Facebook, RSSCloud, and OStatus checks were enqueued on these when they'd never do anything but churn the queue servers.
Notice::isLocal() can replace a number of manual checks for $notice->is_local being LOCAL_PUBLIC or LOCAL_NONPUBLIC.
Diffstat (limited to 'plugins/TwitterBridge/TwitterBridgePlugin.php')
-rw-r--r-- | plugins/TwitterBridge/TwitterBridgePlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index 1a0a69682..65b3a6b38 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -221,7 +221,7 @@ class TwitterBridgePlugin extends Plugin */ function onStartEnqueueNotice($notice, &$transports) { - if (self::hasKeys()) { + if (self::hasKeys() && $notice->isLocal()) { // Avoid a possible loop if ($notice->source != 'twitter') { array_push($transports, 'twitter'); |