]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't save reply info for repeats
authorEvan Prodromou <evan@status.net>
Wed, 13 Jan 2010 09:13:06 +0000 (01:13 -0800)
committerEvan Prodromou <evan@status.net>
Wed, 13 Jan 2010 09:13:06 +0000 (01:13 -0800)
classes/Notice.php

index f48e77c1d221c2386eb6d3062e0ccee703af33f0..02cd20391a9e3d015b94e64c5076059e087f84c4 100644 (file)
@@ -275,7 +275,6 @@ class Notice extends Memcached_DataObject
 
         if (isset($repeat_of)) {
             $notice->repeat_of = $repeat_of;
-            $notice->reply_to = $repeat_of;
         } else {
             $notice->reply_to = self::getReplyTo($reply_to, $profile_id, $source, $final);
         }
@@ -995,6 +994,12 @@ class Notice extends Memcached_DataObject
      */
     function saveReplies()
     {
+        // Don't save reply data for repeats
+
+        if (!empty($this->repeat_of)) {
+            return array();
+        }
+
         // Alternative reply format
         $tname = false;
         if (preg_match('/^T ([A-Z0-9]{1,64}) /', $this->content, $match)) {