diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-16 00:56:32 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-16 00:56:32 -0400 |
commit | 0982c7a15441dbc4b5e685620fc72683d8445b3a (patch) | |
tree | e305c3d5670f329b1b4c49ed67cf1867a436c7a9 /actions | |
parent | b6f816c785d9123e36a84f879b65c073d2023e04 (diff) |
use 410 Gone for deleted notices
Diffstat (limited to 'actions')
-rw-r--r-- | actions/shownotice.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php index 1ec38a76b..fba1468aa 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; } |