summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-04 08:55:36 -0800
committerBrion Vibber <brion@pobox.com>2010-03-04 08:55:36 -0800
commit0ddd1ef191389ed38988091d098463b19aa86f68 (patch)
tree073bc9e8adb076ad52641a52ec84c1fc5a6388b6
parent6f0fe02473f1fd3dc5b43bf2bceda6bfbb2a876a (diff)
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. :)
-rw-r--r--lib/apiaction.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php
index eef0ba637..e4a1df3d1 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -86,7 +86,7 @@ class ApiAction extends Action
$this->since_id = (int)$this->arg('since_id', 0);
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;