make broadcast send notice with extra Twitter cruft
darcs-hash:20080714034647-84dde-8cee5c041927eb7d3f47cf14410c6ce09752dd2f.gz
This commit is contained in:
parent
fb00708284
commit
d0e5fe535e
|
@ -176,14 +176,13 @@ function jabber_broadcast_notice($notice) {
|
||||||
$sub = new Subscription();
|
$sub = new Subscription();
|
||||||
$sub->subscribed = $notice->profile_id;
|
$sub->subscribed = $notice->profile_id;
|
||||||
if ($sub->find()) {
|
if ($sub->find()) {
|
||||||
$msg = jabber_format_notice($profile, $notice);
|
|
||||||
while ($sub->fetch()) {
|
while ($sub->fetch()) {
|
||||||
$user = User::staticGet($sub->subscriber);
|
$user = User::staticGet($sub->subscriber);
|
||||||
if ($user && $user->jabber && $user->jabbernotify) {
|
if ($user && $user->jabber && $user->jabbernotify) {
|
||||||
common_log(LOG_INFO,
|
common_log(LOG_INFO,
|
||||||
'Sending notice ' . $notice->id . ' to ' . $user->jabber,
|
'Sending notice ' . $notice->id . ' to ' . $user->jabber,
|
||||||
__FILE__);
|
__FILE__);
|
||||||
$success = jabber_send_message($user->jabber, $msg);
|
$success = jabber_send_notice($user->jabber, $notice);
|
||||||
if (!$success) {
|
if (!$success) {
|
||||||
# XXX: Not sure, but I think that's the right thing to do
|
# XXX: Not sure, but I think that's the right thing to do
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user