blow inboxes

darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz
This commit is contained in:
Evan Prodromou 2008-10-23 16:35:05 -04:00
parent 561140fbed
commit 5f05134110

View File

@ -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;
}
}