use 410 Gone for Twitter API
This commit is contained in:
parent
0982c7a154
commit
924e3503dc
|
@ -396,10 +396,16 @@ class TwitapistatusesAction extends TwitterapiAction
|
||||||
} else {
|
} else {
|
||||||
// XXX: Twitter just sets a 404 header and doens't bother
|
// XXX: Twitter just sets a 404 header and doens't bother
|
||||||
// to return an err msg
|
// to return an err msg
|
||||||
|
$deleted = Deleted_notice::staticGet($notice_id);
|
||||||
|
if (!empty($deleted)) {
|
||||||
|
$this->clientError(_('Status deleted.'),
|
||||||
|
410, $apidata['content-type']);
|
||||||
|
} else {
|
||||||
$this->clientError(_('No status with that ID found.'),
|
$this->clientError(_('No status with that ID found.'),
|
||||||
404, $apidata['content-type']);
|
404, $apidata['content-type']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function destroy($args, $apidata)
|
function destroy($args, $apidata)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user