From 80facfa16dfdab11135e6e79f5cea916ca0b0959 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 21 Jul 2008 13:44:38 -0400 Subject: Twitter-compatible API - location_update was spitting out the wrong profile. Fixed. darcs-hash:20080721174438-ca946-1f1ddc79f8117561e98a17b143714f5daae1283e.gz --- actions/twitapiaccount.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/twitapiaccount.php b/actions/twitapiaccount.php index 3a66e8885..f337a5450 100644 --- a/actions/twitapiaccount.php +++ b/actions/twitapiaccount.php @@ -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(); } -- cgit v1.2.3-54-g00ecf