]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ignore API 'since' silently as Twitter does instead of throwing a 403 error. Getting...
authorBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 16:55:36 +0000 (08:55 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 16:55:36 +0000 (08:55 -0800)
Threw in an X-StatusNet-Warning header on the off chance some API client developer notices it. :)

lib/apiaction.php

index eef0ba637d20a52ef38c5bfcb2c3b2d520c05cbd..e4a1df3d198400fd3aa64b03c2a8d36cf5af425e 100644 (file)
@@ -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;