From: Michael Date: Sun, 29 Nov 2020 00:05:46 +0000 (+0000) Subject: Only automatically reshare items from DFRN and AP X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8da8d3c4fd62b55d557a2ae3c811c118892d4fdc;p=friendica.git Only automatically reshare items from DFRN and AP --- diff --git a/src/Model/Item.php b/src/Model/Item.php index cfc6c67852..5bc97c677f 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']);