From: Evan Prodromou Date: Tue, 28 Dec 2010 06:58:13 +0000 (-0800) Subject: If notice has been deleted before, don't store URI again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=320e73a3216ba7fada7a8f638497b2b0bd108093;p=quix0rs-gnu-social.git If notice has been deleted before, don't store URI again --- diff --git a/classes/Notice.php b/classes/Notice.php index 14fffe6976..0e8bd3c691 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -109,6 +109,11 @@ class Notice extends Memcached_DataObject // @fixme we have some cases where things get re-run and so the // insert fails. $deleted = Deleted_notice::staticGet('id', $this->id); + + if (!$deleted) { + $deleted = Deleted_notice::staticGet('uri', $this->uri); + } + if (!$deleted) { $deleted = new Deleted_notice();