From e60f3e1a99b27528cb60f47645b0de35849a33dd Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 1 Feb 2024 15:59:04 +0000 Subject: [PATCH] Channel relay reshares are now private follwers posts --- src/Model/Item.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 50aa68d7ef..9134bc149f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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]); }