forked from GNUsocial/gnu-social
Twitter now puts out an error msg when the status param is empty.
Updated our API to match.
This commit is contained in:
parent
490dfc6f5a
commit
8a31970ff8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user