From: Evan Prodromou Date: Thu, 23 Oct 2008 20:35:05 +0000 (-0400) Subject: blow inboxes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f0513411079bb77e084cb9c7fc8460a8a5745f9;p=quix0rs-gnu-social.git blow inboxes darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz --- diff --git a/classes/Notice.php b/classes/Notice.php index 17e0c5a0f9..a3886d1658 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -60,6 +60,7 @@ class Notice extends Memcached_DataObject function delete() { $this->blowCaches(); $this->blowFavesCache(); + $this->blowInboxes(); parent::delete(); } @@ -359,5 +360,17 @@ class Notice extends Memcached_DataObject return; } + + # Delete from inboxes if we're deleted. + + function blowInboxes() { + + $inbox = new Notice_inbox(); + $inbox->notice_id = $this->id; + $inbox->delete(); + + return; + } + }