summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-10 10:48:13 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-10 10:48:13 -0400
commita0a6a627e7c8f036588a3e3488fb1c273e3815c4 (patch)
tree55f8b7e1bc390eb1b8515701ace3b30938c03df9 /classes/Notice.php
parent08c08d02aa48e492eb40ad3790e4fb05c2b86a91 (diff)
parent6cdc2ff444b8c76a3cdc5b8c6e9e7e7539d9b6cc (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 44a6aeb98..5fa0d79a1 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -67,6 +67,8 @@ class Notice extends Memcached_DataObject
$this->blowSubsCache(true);
$this->query('BEGIN');
+ //Null any notices that are replies to this notice
+ $this->query(sprintf("UPDATE notice set reply_to = null WHERE reply_to = %d", $this->id));
$related = array('Reply',
'Fave',
'Notice_tag',