mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
Only automatically reshare items from DFRN and AP
This commit is contained in:
parent
bda5d43f1e
commit
8da8d3c4fd
1 changed files with 4 additions and 0 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue