]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Merge branch 'master' of git://gitorious.org/laconica/br3nda into review/master
[quix0rs-gnu-social.git] / classes / Notice.php
index 44a6aeb986914b4ab6c6c8ccc8987d2a67443329..5fa0d79a1639ddb03eba10832391500d6902f5f7 100644 (file)
@@ -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',