]> git.mxchange.org Git - friendica.git/commitdiff
Restore attendance icons in event posts
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Sep 2023 21:51:03 +0000 (17:51 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Sep 2023 21:51:03 +0000 (17:51 -0400)
- Co-authored by @mexon

src/Model/Item.php

index 8972d3b75e1870214e2da3ecbc8670ac3c9c8b00..de8c2e6da62900171113983fb68c48f1dd7ace8a 100644 (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;
                        }