]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8371: Use correct user id for photo upload
authorMichael <heluecht@pirati.ca>
Sun, 22 Mar 2020 14:07:34 +0000 (14:07 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Mar 2020 14:07:34 +0000 (14:07 +0000)
mod/item.php

index ba79d507b2284058f8e16f22dddec67c825bfef3..85ec3b1d27288354ea754c027333d9741d36057c 100644 (file)
@@ -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;
        }