From: Michael Date: Wed, 6 May 2020 21:19:48 +0000 (+0000) Subject: ignore "follow" activities that are not from the user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=065fad31f155700f5d1280ed5f94b6871c3a262e;p=friendica.git ignore "follow" activities that are not from the user --- diff --git a/src/Model/Item.php b/src/Model/Item.php index ff3ec9a72e..44e00b09b3 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1994,7 +1994,8 @@ class Item if ($transmit) { $transmit_item = Item::selectFirst(['verb', 'origin'], ['id' => $item['id']]); // Don't relay participation messages - if (($transmit_item['verb'] == Activity::FOLLOW) && !$transmit_item['origin']) { + if (($transmit_item['verb'] == Activity::FOLLOW) && + (!$transmit_item['origin'] || ($item['author-id'] != Contact::getPublicIdByUserId($uid)))) { Logger::info('Participation messages will not be relayed', ['item' => $item['id'], 'uri' => $item['uri'], 'verb' => $transmit_item['verb']]); $transmit = false; }