]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter now puts out an error msg when the status param is empty.
authorZach Copley <zach@status.net>
Tue, 20 Oct 2009 22:04:47 +0000 (15:04 -0700)
committerZach Copley <zach@status.net>
Tue, 20 Oct 2009 22:09:18 +0000 (15:09 -0700)
Updated our API to match.

actions/twitapistatuses.php

index 360dff27cbda9da08365911340d46d80eb76e875..b0d3e584ba0e202570049a3d0343b9125eaa0a6c 100644 (file)
@@ -236,11 +236,8 @@ class TwitapistatusesAction extends TwitterapiAction
         }
 
         if (empty($status)) {
-
-            // XXX: Note: In this case, Twitter simply returns '200 OK'
-            // No error is given, but the status is not posted to the
-            // user's timeline.     Seems bad.     Shouldn't we throw an
-            // errror? -- Zach
+            $this->clientError(_('Client must provide a \'status\' parameter with a value.'),
+                $code = 403, $apidata['content-type']);
             return;
 
         } else {