Fix computation of the private flag for shared event items

This commit is contained in:
Hypolite Petovan 2023-11-05 09:11:08 -05:00
parent 44b53fd00b
commit e75a87a581
1 changed files with 1 additions and 1 deletions

View 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;