diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-07 14:13:33 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-07 14:13:33 -0800 |
commit | c21d61840dcacb8dac3f511decef61f2fb3a80d9 (patch) | |
tree | 27707a1612d5e0da8a0d98dd3382f76bb7241322 | |
parent | 1a63d7d8299259dc13c8b21700bf441123947d3a (diff) |
Let people view friends_timeline of others
Add some code to view others' friends timelines through API.
-rw-r--r-- | actions/twitapistatuses.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 216835026..63e29068b 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'); |