]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API - location_update was spitting out the wrong profile. Fixed.
authorzach <zach@copley.name>
Mon, 21 Jul 2008 17:44:38 +0000 (13:44 -0400)
committerzach <zach@copley.name>
Mon, 21 Jul 2008 17:44:38 +0000 (13:44 -0400)
darcs-hash:20080721174438-ca946-1f1ddc79f8117561e98a17b143714f5daae1283e.gz

actions/twitapiaccount.php

index 3a66e888505147ba58839dd242c8f5d7ce01fd22..f337a54506269dcfe1dba93bb9516e347c3261f0 100644 (file)
@@ -80,9 +80,11 @@ class TwitapiaccountAction extends TwitterapiAction {
                }
 
                common_broadcast_profile($profile);
+               $type = $apidata['content-type'];
                
-               $apidata['api_arg'] = $user->id;
-               $this->show($args, $apidata);
+               $this->init_document($type);
+               $this->show_profile($profile, $type);
+               $this->end_document($type);
                
                exit();
        }