]> git.mxchange.org Git - friendica.git/commitdiff
The "contact-uid" is now a reliable proof for contacts that we follow
authorMichael <heluecht@pirati.ca>
Sat, 3 Aug 2019 10:44:16 +0000 (10:44 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 3 Aug 2019 10:44:16 +0000 (10:44 +0000)
include/conversation.php

index 9c8000053033e86701be1aaff00878f8ae479372..798a224016c911bf72d8284ad5a053ce8a6ee9db 100644 (file)
@@ -803,13 +803,13 @@ function conversation_fetch_comments($thread_items) {
        $received = '';
 
        while ($row = Item::fetch($thread_items)) {
-               if (($row['verb'] == ACTIVITY2_ANNOUNCE) && Contact::isSharing($row['author-id'], local_user()) && ($row['received'] > $received) && ($row['thr-parent'] == $row['parent-uri'])) {
+               if (($row['verb'] == ACTIVITY2_ANNOUNCE) && !empty($row['contact-uid']) && ($row['received'] > $received) && ($row['thr-parent'] == $row['parent-uri'])) {
                        $actor = ['link' => $row['author-link'], 'avatar' => $row['author-avatar'], 'name' => $row['author-name']];
                        $received = $row['received'];
                }
 
                if ((($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && !in_array($row['network'], [Protocol::DIASPORA])) &&
-                       (!Contact::isSharing($row['author-id'], local_user()) || !in_array($row['network'], Protocol::NATIVE_SUPPORT))) {
+                       (empty($row['contact-uid']) || !in_array($row['network'], Protocol::NATIVE_SUPPORT))) {
                        $parentlines[] = $lineno;
                }