]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Only use reshare information for the top level post
authorMichael <heluecht@pirati.ca>
Fri, 5 Apr 2019 08:59:39 +0000 (08:59 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 5 Apr 2019 08:59:39 +0000 (08:59 +0000)
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'];
                }