Compare commits

...

1 commit

Author SHA1 Message Date
Matthew Exon
5902bd67b6 Leave event type alone even if description includes image 2023-09-23 20:16:25 +02:00

View file

@ -1078,7 +1078,7 @@ 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 (($item['object-type'] != Activity\ObjectType::EVENT) && 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::IMAGE;
}