]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow unauthenticated users to view /api/statuses/replies/id.format
authorZach Copley <zach@controlyourself.ca>
Tue, 10 Mar 2009 23:48:14 +0000 (16:48 -0700)
committerZach Copley <zach@controlyourself.ca>
Tue, 10 Mar 2009 23:48:14 +0000 (16:48 -0700)
(they can already see @replies via friends_timeline anyway).

actions/twitapistatuses.php

index b50a17abdec548709344e1c2beae41b4698e9667..323c4f1f8824c0d197d5ec6b1b788f25efc35515 100644 (file)
@@ -355,8 +355,8 @@ class TwitapistatusesAction extends TwitterapiAction
         $since_id = $this->arg('since_id');
         $before_id = $this->arg('before_id');
 
+        $user = $this->get_user($apidata['api_arg'], $apidata);
         $this->auth_user = $apidata['user'];
-        $user = $this->auth_user;
         $profile = $user->getProfile();
 
         $sitename = common_config('site', 'name');