From: Michael Date: Sun, 22 Mar 2020 14:07:34 +0000 (+0000) Subject: Issue 8371: Use correct user id for photo upload X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8bde222fca2c8295be8ae39036f539e87b8cba71;p=friendica.git Issue 8371: Use correct user id for photo upload --- diff --git a/mod/item.php b/mod/item.php index ba79d507b2..85ec3b1d27 100644 --- a/mod/item.php +++ b/mod/item.php @@ -461,7 +461,7 @@ function item_post(App $a) { $match = null; - if (!$preview && Photo::setPermissionFromBody($body, $profile_uid, $original_contact_id, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny)) { + if (!$preview && Photo::setPermissionFromBody($body, $uid, $original_contact_id, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny)) { $objecttype = Activity\ObjectType::IMAGE; }