try again with user_timeline auth
darcs-hash:20080719155526-84dde-5157cd11d2f96128321b46cb2bea8ff27ce4478f.gz
This commit is contained in:
@@ -105,9 +105,18 @@ class ApiAction extends Action {
|
||||
'statuses/show',
|
||||
'help/test',
|
||||
'help/downtime_schedule');
|
||||
if (in_array("$this->api_action/$this->api_method", $noauth)) {
|
||||
static $bareauth = array('statuses/user_timeline');
|
||||
|
||||
# noauth: never needs auth
|
||||
# bareauth: only needs auth if without an argument
|
||||
|
||||
$fullname = "$this->api_action/$this->api_method";
|
||||
|
||||
if (in_array($fullname, $bareauth) && !$this->api_arg) {
|
||||
return true;
|
||||
} if (in_array($fullname, $noauth)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user