summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-16 01:01:45 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-04 06:05:04 -0400
commita321651a13f531a0222e90ec4483f0db3e2d31d8 (patch)
tree3b39a301a1189d25e721df62484e5d96f44fecf4 /actions
parent3ebf817e36f5c349d8d34aee8c40f836032141d5 (diff)
use 410 Gone for Twitter API
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapistatuses.php10
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']);
+ }
}
}