From 6125785064c3a3aafb4ed91c408cb45d90a0d9a6 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 17 Jul 2008 22:33:34 -0400 Subject: [PATCH] Twitter-compatible API: white listed user_timeline and show as per twitter darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz --- actions/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/api.php b/actions/api.php index ea24cbe4a1..eeee77ec2f 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)) { -- 2.39.5