diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-16 01:01:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-16 01:01:45 -0400 |
commit | 924e3503dc401c1dafd460f7577f429f7b25607b (patch) | |
tree | 981fdc0b7a05af77eb0292774ccdac84a603925e | |
parent | 0982c7a15441dbc4b5e685620fc72683d8445b3a (diff) |
use 410 Gone for Twitter API
-rw-r--r-- | actions/twitapistatuses.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index c9943698d..e3d366ecc 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']); + } } } |