From: Evan Prodromou Date: Wed, 13 Jan 2010 09:13:06 +0000 (-0800) Subject: Don't save reply info for repeats X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43ff54218934663910f11762ee2a1c1083b119c7;p=quix0rs-gnu-social.git Don't save reply info for repeats --- diff --git a/classes/Notice.php b/classes/Notice.php index f48e77c1d2..02cd20391a 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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)) {