forked from GNUsocial/gnu-social
error notices
darcs-hash:20080705005602-84dde-3c99dbed5e431a9d4f1de124454296d4709eb115.gz
This commit is contained in:
parent
25e93288ba
commit
f6b9662783
@ -130,6 +130,7 @@ function omb_broadcast_remote_subscribers($notice) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function omb_post_notice($notice, $remote_profile, $subscription) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user