diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-10-23 16:35:05 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-10-23 16:35:05 -0400 |
commit | 5f0513411079bb77e084cb9c7fc8460a8a5745f9 (patch) | |
tree | 6dfd753f89d9765ec6d03b6da235540389d18e57 /classes | |
parent | 561140fbedf7bbf6898bd228d4d9f202ca256cc0 (diff) |
blow inboxes
darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 13 |
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; + } + } |