From: Hypolite Petovan Date: Sat, 23 Sep 2023 21:51:03 +0000 (-0400) Subject: Restore attendance icons in event posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c822baa9c6a8af79f796e02f59dfdd6fa553587a;p=friendica.git Restore attendance icons in event posts - Co-authored by @mexon --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 8972d3b75e..de8c2e6da6 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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; }