From: Michael Date: Wed, 6 May 2020 17:30:21 +0000 (+0000) Subject: Issue 8586 again: Don't transmit participations X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7dea1ff6bdc5ea5949a0232adf37db6dfd236b97;p=friendica.git Issue 8586 again: Don't transmit participations --- 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; }