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/Facebook | |
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/Facebook')
-rw-r--r-- | plugins/Facebook/FacebookPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Facebook/FacebookPlugin.php b/plugins/Facebook/FacebookPlugin.php index 5dba73a5d..19989a952 100644 --- a/plugins/Facebook/FacebookPlugin.php +++ b/plugins/Facebook/FacebookPlugin.php @@ -585,7 +585,7 @@ class FacebookPlugin extends Plugin function onStartEnqueueNotice($notice, &$transports) { - if (self::hasKeys()) { + if (self::hasKeys() && $notice->isLocal()) { array_push($transports, 'facebook'); } return true; |