Leave event type alone even if description includes image
This commit is contained in:
parent
72dbc7377b
commit
5902bd67b6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue