From 8da8d3c4fd62b55d557a2ae3c811c118892d4fdc Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Nov 2020 00:05:46 +0000 Subject: [PATCH] Only automatically reshare items from DFRN and AP --- src/Model/Item.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index cfc6c6785..5bc97c677 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2802,6 +2802,10 @@ class Item return; } + if (!in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN])) { + return; + } + Logger::info('Automatically reshare item', ['uid' => $item['uid'], 'id' => $item['id'], 'guid' => $item['guid'], 'uri-id' => $item['uri-id']]); Item::performActivity($item['id'], 'announce', $item['uid']);