From: Hypolite Petovan Date: Sun, 5 Nov 2023 14:11:08 +0000 (-0500) Subject: Fix computation of the private flag for shared event items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e75a87a581c3803fcbb54d7619e7dcd96c5b38a2;p=friendica.git Fix computation of the private flag for shared event items --- 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;