From 839c5a8e412aa3f22365d9fa8fe7a08cd2bc9378 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 7 Nov 2022 19:41:22 +0000 Subject: fix regression where automatically created directories were not public and pinned/featured state of apps was not displayed correctly --- include/attach.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/attach.php b/include/attach.php index 3b63bd651..fd418103d 100644 --- a/include/attach.php +++ b/include/attach.php @@ -707,13 +707,12 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $darr = array('pathname' => $pathname); - // if we need to create a directory, use the channel default permissions. - - $darr['allow_cid'] = $channel['channel_allow_cid']; - $darr['allow_gid'] = $channel['channel_allow_gid']; - $darr['deny_cid'] = $channel['channel_deny_cid']; - $darr['deny_gid'] = $channel['channel_deny_gid']; + // if we need to create a directory at this point, make it public + $darr['allow_cid'] = ''; + $darr['allow_gid'] = ''; + $darr['deny_cid'] = ''; + $darr['deny_gid'] = ''; $direct = null; -- cgit v1.2.3