Merge pull request #13464 from MrPetovan/bug/13462-event-image-attendance
Restore attendance icons in event posts
This commit is contained in:
commit
3e314d2fc6
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue