From: zach Date: Fri, 18 Jul 2008 02:33:34 +0000 (-0400) Subject: Twitter-compatible API: white listed user_timeline and show as per twitter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6125785064c3a3aafb4ed91c408cb45d90a0d9a6;p=quix0rs-gnu-social.git Twitter-compatible API: white listed user_timeline and show as per twitter darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz --- 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)) {