summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-13 23:46:47 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-13 23:46:47 -0400
commitd0e5fe535e6025440f0bc36224a1255d27ac686f (patch)
tree9ea94f270ed4ba7ca09624a9e028fa5d0a7b5364
parentfb007082841f1a23da5427063e00ceb7c93f3ac2 (diff)
make broadcast send notice with extra Twitter cruft
darcs-hash:20080714034647-84dde-8cee5c041927eb7d3f47cf14410c6ce09752dd2f.gz
-rw-r--r--lib/jabber.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index d8cc38dd5..f12aad90f 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -176,14 +176,13 @@ function jabber_broadcast_notice($notice) {
$sub = new Subscription();
$sub->subscribed = $notice->profile_id;
if ($sub->find()) {
- $msg = jabber_format_notice($profile, $notice);
while ($sub->fetch()) {
$user = User::staticGet($sub->subscriber);
if ($user && $user->jabber && $user->jabbernotify) {
common_log(LOG_INFO,
'Sending notice ' . $notice->id . ' to ' . $user->jabber,
__FILE__);
- $success = jabber_send_message($user->jabber, $msg);
+ $success = jabber_send_notice($user->jabber, $notice);
if (!$success) {
# XXX: Not sure, but I think that's the right thing to do
return false;