From: Brion Vibber <brion@pobox.com>
Date: Thu, 4 Mar 2010 16:55:36 +0000 (-0800)
Subject: Ignore API 'since' silently as Twitter does instead of throwing a 403 error. Getting... 
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ddd1ef191389ed38988091d098463b19aa86f68;p=quix0rs-gnu-social.git

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. :)
---

diff --git a/lib/apiaction.php b/lib/apiaction.php
index eef0ba637d..e4a1df3d19 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;