From: Evan Prodromou Date: Thu, 16 Jul 2009 04:56:32 +0000 (-0400) Subject: use 410 Gone for deleted notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ebf817e36f5c349d8d34aee8c40f836032141d5;p=quix0rs-gnu-social.git use 410 Gone for deleted notices --- diff --git a/actions/shownotice.php b/actions/shownotice.php index 8f73dc824a..3d7319489e 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; }