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 /lib | |
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 'lib')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php index 59d5132ec..049001aba 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1235,9 +1235,8 @@ function common_enqueue_notice($notice) $transports[] = 'jabber'; } - // @fixme move these checks into QueueManager and/or individual handlers - if ($notice->is_local == Notice::LOCAL_PUBLIC || - $notice->is_local == Notice::LOCAL_NONPUBLIC) { + // We can skip these for gatewayed notices. + if ($notice->isLocal()) { $transports = array_merge($transports, $localTransports); if ($xmpp) { $transports[] = 'public'; |