diff options
author | Evan Prodromou <evan@status.net> | 2010-01-13 01:13:06 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-13 01:13:06 -0800 |
commit | 43ff54218934663910f11762ee2a1c1083b119c7 (patch) | |
tree | b4757ce8a47136d2f259a01e27d2d7a1dfbdb443 /classes/Notice.php | |
parent | 8bfa7fdeaf85091907e5c0c9f181655a9a5dcdf5 (diff) |
Don't save reply info for repeats
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index f48e77c1d..02cd20391 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)) { |