]> git.mxchange.org Git - friendica.git/commitdiff
Fix computation of the private flag for shared event items
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 Nov 2023 14:11:08 +0000 (09:11 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 Nov 2023 14:11:08 +0000 (09:11 -0500)
src/Model/Event.php

index ab52fb279e634c78fe1627661820ea9840b4d667..b0a62b39be463a61a14a6f4a198fd51217282ce7 100644 (file)
@@ -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;