From e75a87a581c3803fcbb54d7619e7dcd96c5b38a2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 5 Nov 2023 09:11:08 -0500 Subject: [PATCH] Fix computation of the private flag for shared event items --- src/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Event.php b/src/Model/Event.php index ab52fb279e..b0a62b39be 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -362,7 +362,7 @@ class Event $item['allow_gid'] = $event['allow_gid']; $item['deny_cid'] = $event['deny_cid']; $item['deny_gid'] = $event['deny_gid']; - $item['private'] = $event['allow_cid'] && $event['allow_gid'] && $event['deny_cid'] && $event['deny_gid'] ? 0 : 1; + $item['private'] = $event['allow_cid'] || $event['allow_gid'] || $event['deny_cid'] || $event['deny_gid']; $item['visible'] = 1; $item['verb'] = Activity::POST; $item['object-type'] = Activity\ObjectType::EVENT; -- 2.39.5