If notice has been deleted before, don't store URI again

This commit is contained in:
Evan Prodromou 2010-12-27 22:58:13 -08:00
parent 3bcfee906a
commit 320e73a321

View File

@ -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();