diff options
Diffstat (limited to 'actions/shownotice.php')
-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; } |