Merge pull request #6159 from JonnyTischbein/issue_photo_permisson_upload_to_album

[frio] Fix setting permisson as post for uploaded photo in album via modal create post
This commit is contained in:
Hypolite Petovan 2018-11-17 14:13:32 -05:00 committed by GitHub
commit a0589676e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -468,7 +468,7 @@ function item_post(App $a) {
$fields = ['allow_cid' => $str_contact_allow, 'allow_gid' => $str_group_allow,
'deny_cid' => $str_contact_deny, 'deny_gid' => $str_group_deny];
$condition = ['resource-id' => $image_uri, 'uid' => $profile_uid, 'album' => L10n::t('Wall Photos')];
$condition = ['resource-id' => $image_uri, 'uid' => $profile_uid];
DBA::update('photo', $fields, $condition);
}
}