]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
error notices
authorEvan Prodromou <evan@prodromou.name>
Sat, 5 Jul 2008 00:56:02 +0000 (20:56 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 5 Jul 2008 00:56:02 +0000 (20:56 -0400)
darcs-hash:20080705005602-84dde-3c99dbed5e431a9d4f1de124454296d4709eb115.gz

lib/omb.php
lib/util.php

index 9b0b1fd24e52d3984cdd8b63c036d388647c0ab7..89d7f4145a99196af4c5761271306ee6b90480e2 100644 (file)
@@ -130,6 +130,7 @@ function omb_broadcast_remote_subscribers($notice) {
                        }
                }
        }
+       return true;
 }
 
 function omb_post_notice($notice, $remote_profile, $subscription) {
index 6aff62786fe68a2b9617b2dd8a4d73f84019ad52..38e24bb25ccd68ebb040c7723225d7d0e2f57fc5 100644 (file)
@@ -839,10 +839,16 @@ function common_real_broadcast($notice, $remote=false) {
                # Make sure we have the OMB stuff
                require_once(INSTALLDIR.'/lib/omb.php');
                $success = omb_broadcast_remote_subscribers($notice);
+               if (!$success) {
+                       common_log(LOG_ERROR, 'Error in OMB broadcast for notice ' . $notice->id);
+               }
        }
        if ($success) {
                require_once(INSTALLDIR.'/lib/jabber.php');
                $success = jabber_broadcast_notice($notice);
+               if (!$success) {
+                       common_log(LOG_ERROR, 'Error in jabber broadcast for notice ' . $notice->id);
+               }
        }
        // XXX: broadcast notices to SMS
        // XXX: broadcast notices to other IM