only send local messages to public XMPP stream

darcs-hash:20080826205341-84dde-04c1641f4b9c5aa5318b76512664ee9df170d779.gz
This commit is contained in:
Evan Prodromou 2008-08-26 16:53:41 -04:00
parent 782fe0130f
commit 0bc0568e66
1 changed files with 2 additions and 1 deletions

View File

@ -271,8 +271,9 @@ function jabber_broadcast_notice($notice) {
$public = common_config('xmpp', 'public');
# FIXME PRIV don't send out private messages here
# XXX: should we send out non-local messages if public,localonly = false? I think not
if ($public) {
if ($public && $notice->is_local) {
foreach ($public as $address) {
common_log(LOG_INFO,
'Sending notice ' . $notice->id . ' to public listener ' . $address,