1
1
Fork 0

Only automatically reshare items from DFRN and AP

This commit is contained in:
Michael 2020-11-29 00:05:46 +00:00
parent bda5d43f1e
commit 8da8d3c4fd

View file

@ -2802,6 +2802,10 @@ class Item
return; 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']]); 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']); Item::performActivity($item['id'], 'announce', $item['uid']);