Compare commits

...

1 commit

Author SHA1 Message Date
Matthew Exon 03f5e7a952 Leave event type alone even if description includes image 2023-09-23 20:22:08 +02:00

View file

@ -1078,7 +1078,7 @@ class Item
} }
if ($item['origin']) { 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; $item['object-type'] = Activity\ObjectType::IMAGE;
} }