]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remember to broadcast in api, and also use the right ID
authorEvan Prodromou <evan@prodromou.name>
Wed, 30 Jul 2008 03:00:12 +0000 (23:00 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 30 Jul 2008 03:00:12 +0000 (23:00 -0400)
darcs-hash:20080730030012-84dde-9ceea12e90a4b4b4bbe35cb6cb50b6bcbb6085b7.gz

actions/twitapistatuses.php

index f791a0cc864a2192a2e3a67400e8e9ed121b839b..a1e1545f8f7ae77638b4e796c98da7e82ef70f14 100644 (file)
@@ -408,6 +408,8 @@ class TwitapistatusesAction extends TwitterapiAction {
                        $this->server_error($notice);
                        return;
                }
+
+               common_broadcast_notice($notice);
                
                // FIXME: Bad Hack 
                // I should be able to just sent this notice off for display,
@@ -415,7 +417,7 @@ class TwitapistatusesAction extends TwitterapiAction {
                // point and I don't know how to convert it to one here. So
                // I'm forced to have DBObject pull the notice back out of the
                // DB before printing. --Zach
-               $apidata['api_arg'] = $id;
+               $apidata['api_arg'] = $notice->id;
                $this->show($args, $apidata);
 
                exit();