Replies to repeats should go to the original

This commit is contained in:
Mikael Nordfeldth 2014-06-04 23:49:47 +02:00
parent a490d634db
commit 04d4b62dff

View File

@ -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