We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 61257850 authored by zach's avatar zach

Twitter-compatible API: white listed user_timeline and show as per twitter

darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz
parent 6ad6e4aa
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment