summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-08-14 12:03:25 -0700
committerEvan Prodromou <evan@status.net>2010-08-14 12:03:25 -0700
commit21bf50bad61a3ff99c7decc6949b14191407648c (patch)
tree7b25a3647080d20506d4043d757eb47ed62ce098 /classes
parent926c77246bb168097b3f937b5cc22ee9721b83c9 (diff)
parent401cf36de3bcce681f95344cc479f0594014b028 (diff)
Merge branch 'noticetitle' into 0.9.x
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index fe014b942..5a70f70b6 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -121,16 +121,19 @@ class Notice extends Memcached_DataObject
$deleted->insert();
}
- // Clear related records
+ if (Event::handle('NoticeDeleteRelated', array($this))) {
- $this->clearReplies();
- $this->clearRepeats();
- $this->clearFaves();
- $this->clearTags();
- $this->clearGroupInboxes();
+ // Clear related records
- // NOTE: we don't clear inboxes
- // NOTE: we don't clear queue items
+ $this->clearReplies();
+ $this->clearRepeats();
+ $this->clearFaves();
+ $this->clearTags();
+ $this->clearGroupInboxes();
+
+ // NOTE: we don't clear inboxes
+ // NOTE: we don't clear queue items
+ }
$result = parent::delete();