]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't attempt to resend XMPP messages that can't be broadcast due to the profile...
authorBrion Vibber <brion@pobox.com>
Fri, 29 Jan 2010 06:51:07 +0000 (22:51 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Jan 2010 06:51:07 +0000 (22:51 -0800)
lib/jabber.php

index b6b23521bdf4e8a11088c94d4dfdc983e2849872..e1bf06ba661bfc8a8e29bdc30637c5f3d8b22032 100644 (file)
@@ -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);