From: Evan Prodromou Date: Sat, 7 Mar 2009 22:13:33 +0000 (-0800) Subject: Let people view friends_timeline of others X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c21d61840dcacb8dac3f511decef61f2fb3a80d9;p=quix0rs-gnu-social.git Let people view friends_timeline of others Add some code to view others' friends timelines through API. --- diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 216835026d..63e29068b1 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -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');