Fix setting permisson as post for uploaded photo in album via modal create post

This commit is contained in:
Jonny Tischbein 2018-11-17 19:14:59 +01:00
parent 22fedc9a1a
commit 7c690c93bb

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);
}
}