From: Evan Prodromou Date: Thu, 16 Jul 2009 05:01:45 +0000 (-0400) Subject: use 410 Gone for Twitter API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a321651a13f531a0222e90ec4483f0db3e2d31d8;p=quix0rs-gnu-social.git use 410 Gone for Twitter API --- diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index c9943698dc..e3d366ecc8 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -396,8 +396,14 @@ class TwitapistatusesAction extends TwitterapiAction } else { // XXX: Twitter just sets a 404 header and doens't bother // to return an err msg - $this->clientError(_('No status with that ID found.'), - 404, $apidata['content-type']); + $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.'), + 404, $apidata['content-type']); + } } }