From 7dea1ff6bdc5ea5949a0232adf37db6dfd236b97 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 May 2020 17:30:21 +0000 Subject: [PATCH] Issue 8586 again: Don't transmit participations --- src/Protocol/Diaspora.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 044740d3c7..708b6597ef 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -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; }