]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8586 again: Don't transmit participations
authorMichael <heluecht@pirati.ca>
Wed, 6 May 2020 17:30:21 +0000 (17:30 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 May 2020 17:30:21 +0000 (17:30 +0000)
src/Protocol/Diaspora.php

index 044740d3c7e44fcb1203f3a8686b8da5d06a32b3..708b6597ef0d5cc630c271612593c59a68314407 100644 (file)
@@ -2327,9 +2327,9 @@ class Diaspora
                Logger::info('Participation stored', ['id' => $message_id, 'guid' => $guid, 'parent_guid' => $parent_guid, 'author' => $author]);
 
                // Send all existing comments and likes to the requesting server
-               $comments = Item::select(['id', 'uri-id', 'parent'], ['parent' => $parent_item['id']]);
+               $comments = Item::select(['id', 'uri-id', 'parent', 'verb'], ['parent' => $parent_item['id']]);
                while ($comment = Item::fetch($comments)) {
-                       if ($comment['id'] == $comment['parent']) {
+                       if ($comment['id'] == $comment['parent'] || in_array($comment["verb"], [Activity::FOLLOW, Activity::TAG])) {
                                continue;
                        }