mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Fix item.private value in Model\Event::getItemArrayForId
- The $event array doesn't have a `private` key because the event table doesn't have a `private` field.
This commit is contained in:
parent
7e8a44c15b
commit
e468870e87
1 changed files with 1 additions and 1 deletions
|
@ -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'] = intval($event['private'] ?? 0);
|
||||
$item['private'] = $event['allow_cid'] && $event['allow_gid'] && $event['deny_cid'] && $event['deny_gid'] ? 0 : 1;
|
||||
$item['visible'] = 1;
|
||||
$item['verb'] = Activity::POST;
|
||||
$item['object-type'] = Activity\ObjectType::EVENT;
|
||||
|
|
Loading…
Reference in a new issue