Twitter now puts out an error msg when the status param is empty.

Updated our API to match.
This commit is contained in:
Zach Copley 2009-10-20 15:04:47 -07:00
parent 490dfc6f5a
commit 8a31970ff8

View 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 {