From: Evan Prodromou Date: Thu, 29 Jan 2009 04:03:03 +0000 (-0500) Subject: only send group notices through Jabber to users with notices enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04b3add162674df2ebdb4e4e347b7dbea934580b;p=quix0rs-gnu-social.git only send group notices through Jabber to users with notices enabled --- diff --git a/lib/jabber.php b/lib/jabber.php index 84d2a562ce..6196bc9e1d 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -403,7 +403,9 @@ function jabber_broadcast_notice($notice) 'FROM user JOIN notice_inbox ' . 'ON user.id = notice_inbox.user_id ' . 'WHERE notice_inbox.notice_id = ' . $notice->id . ' ' . - 'AND notice_inbox.source = 2 '); + 'AND notice_inbox.source = 2 ' . + 'AND user.jabber is not null ' . + 'AND user.jabbernotify = 1 '); while ($user->fetch()) { if (!array_key_exists($user->id, $sent_to)) {