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

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',
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