Merge pull request #12778 from annando/issue-12764
Issue 12764: Fix photo permissions when posting via web
This commit is contained in:
commit
7621c8aac5
|
@ -1035,7 +1035,7 @@ class Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($notify) {
|
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::IMAGE;
|
$item['object-type'] = Activity\ObjectType::IMAGE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user