summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-07 14:13:33 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-07 14:13:33 -0800
commitc21d61840dcacb8dac3f511decef61f2fb3a80d9 (patch)
tree27707a1612d5e0da8a0d98dd3382f76bb7241322 /actions
parent1a63d7d8299259dc13c8b21700bf441123947d3a (diff)
Let people view friends_timeline of others
Add some code to view others' friends timelines through API.
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapistatuses.php7
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');