Merge pull request #13464 from MrPetovan/bug/13462-event-image-attendance

Restore attendance icons in event posts
This commit is contained in:
Michael Vogel 2023-09-24 02:53:31 +02:00 committed by GitHub
commit 3e314d2fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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