projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda5d43
)
Only automatically reshare items from DFRN and AP
author
Michael
<heluecht@pirati.ca>
Sun, 29 Nov 2020 00:05:46 +0000
(
00:05
+0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 29 Nov 2020 00:05:46 +0000
(
00:05
+0000)
src/Model/Item.php
patch
|
blob
|
history
diff --git
a/src/Model/Item.php
b/src/Model/Item.php
index cfc6c67852be9fe881b7d54c40eb2bcc755c12b7..5bc97c677f8b920f398cb6471a614aa73eb9cb92 100644
(file)
--- 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']);