summaryrefslogtreecommitdiff
path: root/actions/shownotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-16 00:56:32 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-04 06:05:04 -0400
commit3ebf817e36f5c349d8d34aee8c40f836032141d5 (patch)
tree77d83690c8fa343ec144cfff8d2a54a897512313 /actions/shownotice.php
parenta074cccb0ed6019845645cfed52ff3170f48bb53 (diff)
use 410 Gone for deleted notices
Diffstat (limited to 'actions/shownotice.php')
-rw-r--r--actions/shownotice.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php
index 8f73dc824..3d7319489 100644
--- a/actions/shownotice.php
+++ b/actions/shownotice.php
@@ -84,7 +84,13 @@ class ShownoticeAction extends OwnerDesignAction
$this->notice = Notice::staticGet($id);
if (empty($this->notice)) {
- $this->clientError(_('No such notice.'), 404);
+ // Did we used to have it, and it got deleted?
+ $deleted = Deleted_notice::staticGet($id);
+ if (!empty($deleted)) {
+ $this->clientError(_('Notice deleted.'), 410);
+ } else {
+ $this->clientError(_('No such notice.'), 404);
+ }
return false;
}