]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Let people view friends_timeline of others
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 7 Mar 2009 22:13:33 +0000 (14:13 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 7 Mar 2009 22:13:33 +0000 (14:13 -0800)
Add some code to view others' friends timelines through API.

actions/twitapistatuses.php

index 216835026de7806b1a5c9d65211c9102cfa88433..63e29068b140897da4e8d0eb5ffd72b4766b4516 100644 (file)
@@ -115,9 +115,14 @@ class TwitapistatusesAction extends TwitterapiAction
 
         $since = strtotime($this->arg('since'));
 
-        $user = $this->get_user(null, $apidata);
+        $user = $this->get_user($apidata['api_arg'], $apidata);
         $this->auth_user = $user;
 
+        if (empty($user)) {
+             $this->clientError(_('No such user!'), 404, $apidata['content-type']);
+            return;
+        }
+
         $profile = $user->getProfile();
 
         $sitename = common_config('site', 'name');