summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-07-17 22:33:34 -0400
committerzach <zach@copley.name>2008-07-17 22:33:34 -0400
commit6125785064c3a3aafb4ed91c408cb45d90a0d9a6 (patch)
treec0ce1c76253d2136bf0298f49e9ef94d6428b223
parent6ad6e4aa5048f67cad86a959fd0b3fe996cbf221 (diff)
Twitter-compatible API: white listed user_timeline and show as per twitter
darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz
-rw-r--r--actions/api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/api.php b/actions/api.php
index ea24cbe4a..eeee77ec2 100644
--- a/actions/api.php
+++ b/actions/api.php
@@ -100,7 +100,9 @@ class ApiAction extends Action {
# Whitelist of API methods that don't need authentication
function requires_auth() {
- static $noauth = array( 'statuses/public_timeline',
+ static $noauth = array( 'statuses/public_timeline',
+ 'statuses/user_timeline',
+ 'statuses/show',
'help/test',
'help/downtime_schedule');
if (in_array("$this->api_action/$this->api_method", $noauth)) {