summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-20 15:04:47 -0700
committerZach Copley <zach@status.net>2009-10-20 15:09:18 -0700
commit8a31970ff8fe8a4e440501771756747370e2fa20 (patch)
treee7f4d3ac608c5fca971d2ee15ab0c676b8c922bb
parent490dfc6f5a4480cda3fdee8af66ea4e856cdf0e8 (diff)
Twitter now puts out an error msg when the status param is empty.
Updated our API to match.
-rw-r--r--actions/twitapistatuses.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index 360dff27c..b0d3e584b 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -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 {