]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
Fix: Only use reshare information for the top level post
[friendica.git] / include / conversation.php
index 97784c67382797a96bba7cf18ef02a577a2e918c..c82bbe58fc5204857c3122d9d0aabe78d9d7dca9 100644 (file)
@@ -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'];
                }