]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make broadcast send notice with extra Twitter cruft
authorEvan Prodromou <evan@prodromou.name>
Mon, 14 Jul 2008 03:46:47 +0000 (23:46 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 14 Jul 2008 03:46:47 +0000 (23:46 -0400)
darcs-hash:20080714034647-84dde-8cee5c041927eb7d3f47cf14410c6ce09752dd2f.gz

lib/jabber.php

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