From: Brion Vibber Date: Fri, 29 Jan 2010 06:51:07 +0000 (-0800) Subject: Don't attempt to resend XMPP messages that can't be broadcast due to the profile... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5eca9bd2ce11633e14a840cb93adc6fd3ec8fc0;p=quix0rs-gnu-social.git Don't attempt to resend XMPP messages that can't be broadcast due to the profile being deleted. --- diff --git a/lib/jabber.php b/lib/jabber.php index b6b23521bd..e1bf06ba66 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -358,7 +358,7 @@ function jabber_broadcast_notice($notice) common_log(LOG_WARNING, 'Refusing to broadcast notice with ' . 'unknown profile ' . common_log_objstring($notice), __FILE__); - return false; + return true; // not recoverable; discard. } $msg = jabber_format_notice($profile, $notice); @@ -437,7 +437,7 @@ function jabber_public_notice($notice) common_log(LOG_WARNING, 'Refusing to broadcast notice with ' . 'unknown profile ' . common_log_objstring($notice), __FILE__); - return false; + return true; // not recoverable; discard. } $msg = jabber_format_notice($profile, $notice);