forked from GNUsocial/gnu-social
only send local messages to public XMPP stream
darcs-hash:20080826205341-84dde-04c1641f4b9c5aa5318b76512664ee9df170d779.gz
This commit is contained in:
parent
782fe0130f
commit
0bc0568e66
@ -271,8 +271,9 @@ function jabber_broadcast_notice($notice) {
|
|||||||
$public = common_config('xmpp', 'public');
|
$public = common_config('xmpp', 'public');
|
||||||
|
|
||||||
# FIXME PRIV don't send out private messages here
|
# 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) {
|
foreach ($public as $address) {
|
||||||
common_log(LOG_INFO,
|
common_log(LOG_INFO,
|
||||||
'Sending notice ' . $notice->id . ' to public listener ' . $address,
|
'Sending notice ' . $notice->id . ' to public listener ' . $address,
|
||||||
|
Loading…
Reference in New Issue
Block a user