summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-12 16:02:44 -0500
committerEvan Prodromou <evan@status.net>2009-12-12 16:02:44 -0500
commit698b28c95c9d4fa5cb404395b2c90b10a438fcd5 (patch)
tree5135d96b90ae6f5cd4f6a1765c5f7817f24fcf61 /classes
parentcfe67a9c0192129448ea3f0b98aadf49e962fd4d (diff)
clear repeat_of flag when a notice is deleted
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index eb611f314..a7b0f8cdb 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -115,6 +115,12 @@ class Notice extends Memcached_DataObject
//Null any notices that are replies to this notice
$this->query(sprintf("UPDATE notice set reply_to = null WHERE reply_to = %d", $this->id));
+
+ //Null any notices that are repeats of this notice
+ //XXX: probably need to uncache these, too
+
+ $this->query(sprintf("UPDATE notice set repeat_of = null WHERE repeat_of = %d", $this->id));
+
$related = array('Reply',
'Fave',
'Notice_tag',