summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-04-08 22:11:58 +0100
committerCiaranG <ciaran@ciarang.com>2009-04-08 22:11:58 +0100
commit85873b1f2b5b6a3e065cf5d227df31380b6f239e (patch)
tree98026e5fdd03e33fa872204a227b102dcca3cf7a /classes
parent070cd3533c3474dc065c6681befb92dac51f4bf7 (diff)
parent18c8a55ba61e507f08162149273a9a33b9b73ca0 (diff)
Merge branch 'master' of git://gitorious.org/laconica/br3nda into review/master
Diffstat (limited to 'classes')
-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',