diff options
author | Dan Moore <dan@moore.cx> | 2009-06-04 17:57:03 -0400 |
---|---|---|
committer | Dan Moore <dan@moore.cx> | 2009-06-04 17:57:03 -0400 |
commit | 6658e2a2ee9517bebd59cf69d7483e6eda691b4e (patch) | |
tree | 613fad8f4e37afab8b64d0ab790b3bce880c54f6 /actions/api.php | |
parent | 9e16b7d89b101d8dfebdb8bf22ea56e9b8731bdd (diff) |
Handle the ways Twitter accepts passing the user in the query string.
Diffstat (limited to 'actions/api.php')
-rw-r--r-- | actions/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/api.php b/actions/api.php index b25ba99f3..b8da852b5 100644 --- a/actions/api.php +++ b/actions/api.php @@ -144,8 +144,8 @@ class ApiAction extends Action } if (in_array($fullname, $bareauth)) { - # bareauth: only needs auth if without an argument - if ($this->api_arg) { + # bareauth: only needs auth if without an argument or query param specifying user + if ($this->api_arg || $this->arg('id') || is_numeric($this->arg('user_id')) || $this->arg('screen_name')) { return false; } else { return true; |