From 04d4b62dfff5cb3bfce76d3124b5167db25c379e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 4 Jun 2014 23:49:47 +0200 Subject: [PATCH] Replies to repeats should go to the original --- classes/Notice.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/Notice.php b/classes/Notice.php index c6ae3c9155..931c561b08 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -530,7 +530,13 @@ class Notice extends Managed_DataObject $profile->nickname, $reply->id), 403); } - $notice->reply_to = $reply->id; + // If it's a repeat, the reply_to should be to the original + if (!empty($reply->repeat_of)) { + $notice->reply_to = $reply->repeat_of; + } else { + $notice->reply_to = $reply->id; + } + // But the conversation ought to be the same :) $notice->conversation = $reply->conversation; // If the original is private to a group, and notice has