Restore attendance icons in event posts

- Co-authored by @mexon
This commit is contained in:
Hypolite Petovan 2023-09-23 17:51:03 -04:00
parent 72dbc7377b
commit c822baa9c6

View File

@ -1078,7 +1078,10 @@ class Item
}
if ($item['origin']) {
if (Photo::setPermissionFromBody($item['body'], $item['uid'], $item['contact-id'], $item['allow_cid'], $item['allow_gid'], $item['deny_cid'], $item['deny_gid'])) {
if (
Photo::setPermissionFromBody($item['body'], $item['uid'], $item['contact-id'], $item['allow_cid'], $item['allow_gid'], $item['deny_cid'], $item['deny_gid'])
&& ($item['object-type'] != Activity\ObjectType::EVENT)
) {
$item['object-type'] = Activity\ObjectType::IMAGE;
}