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)) {
|
if (empty($status)) {
|
||||||
|
$this->clientError(_('Client must provide a \'status\' parameter with a value.'),
|
||||||
// XXX: Note: In this case, Twitter simply returns '200 OK'
|
$code = 403, $apidata['content-type']);
|
||||||
// No error is given, but the status is not posted to the
|
|
||||||
// user's timeline. Seems bad. Shouldn't we throw an
|
|
||||||
// errror? -- Zach
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user