forked from GNUsocial/gnu-social
Ignore API 'since' silently as Twitter does instead of throwing a 403 error. Getting extra results is less disruptive than total failure.
Threw in an X-StatusNet-Warning header on the off chance some API client developer notices it. :)
This commit is contained in:
parent
6f0fe02473
commit
0ddd1ef191
@ -86,7 +86,7 @@ class ApiAction extends Action
|
|||||||
$this->since_id = (int)$this->arg('since_id', 0);
|
$this->since_id = (int)$this->arg('since_id', 0);
|
||||||
|
|
||||||
if ($this->arg('since')) {
|
if ($this->arg('since')) {
|
||||||
$this->clientError(_("since parameter is disabled for performance; use since_id"), 403);
|
header('X-StatusNet-Warning: since parameter is disabled; use since_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user