]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API: white listed user_timeline and show as per twitter
authorzach <zach@copley.name>
Fri, 18 Jul 2008 02:33:34 +0000 (22:33 -0400)
committerzach <zach@copley.name>
Fri, 18 Jul 2008 02:33:34 +0000 (22:33 -0400)
darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz

actions/api.php

index ea24cbe4a125be09ebf147bc8d257a52c89011d2..eeee77ec2f1bafd82f7dd6e5fdab3ff01431e32b 100644 (file)
@@ -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)) {