From 4a30490ac980f8da9f945814fd066b3fc016eddd Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 5 Apr 2019 08:59:39 +0000 Subject: [PATCH] Fix: Only use reshare information for the top level post --- include/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 97784c6738..c82bbe58fc 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -802,7 +802,7 @@ function conversation_fetch_comments($thread_items) { $created = ''; while ($row = Item::fetch($thread_items)) { - if (($row['verb'] == ACTIVITY2_ANNOUNCE) && !empty($row['contact-uid']) && ($row['created'] > $created)) { + if (($row['verb'] == ACTIVITY2_ANNOUNCE) && !empty($row['contact-uid']) && ($row['created'] > $created) && ($row['thr-parent'] == $row['parent-uri'])) { $actor = ['link' => $row['author-link'], 'avatar' => $row['author-avatar'], 'name' => $row['author-name']]; $created = $row['created']; }