Let people view friends_timeline of others

Add some code to view others' friends timelines through API.
This commit is contained in:
Evan Prodromou 2009-03-07 14:13:33 -08:00
parent 1a63d7d829
commit c21d61840d
1 changed files with 6 additions and 1 deletions

View 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');