]> git.mxchange.org Git - friendica.git/commitdiff
Channel relay reshares are now private follwers posts
authorMichael <heluecht@pirati.ca>
Thu, 1 Feb 2024 15:59:04 +0000 (15:59 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 1 Feb 2024 15:59:04 +0000 (15:59 +0000)
src/Model/Item.php

index 50aa68d7ef6c79fb078a6cb98ebea09fe8307353..9134bc149f35bbd6ec4f9dccd9a353482c507d04 100644 (file)
@@ -1501,7 +1501,11 @@ class Item
                        ];
                        if (!Post::exists($condition)) {
                                Logger::debug('Reshare post', ['uid' => $uid, 'uri-id' => $uri_id]);
-                               self::performActivity($item['id'], 'announce', $uid);
+                               $allow_cid = '';
+                               $allow_gid = '<' . Circle::FOLLOWERS . '>';
+                               $deny_cid  = '';
+                               $deny_gid  = '';
+                               self::performActivity($item['id'], 'announce', $uid, $allow_cid, $allow_gid, $deny_cid, $deny_gid);
                        } else {
                                Logger::debug('Reshare already exists', ['uid' => $uid, 'uri-id' => $uri_id]);
                        }