summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-23 16:35:05 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-23 16:35:05 -0400
commit5f0513411079bb77e084cb9c7fc8460a8a5745f9 (patch)
tree6dfd753f89d9765ec6d03b6da235540389d18e57 /classes/Notice.php
parent561140fbedf7bbf6898bd228d4d9f202ca256cc0 (diff)
blow inboxes
darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 17e0c5a0f..a3886d165 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;
+ }
+
}