mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
Regression: Cover photos being stored in cloud root instead of "Cover Photos" folder. Ditto for Profile Photos.
This commit is contained in:
parent
4213e116e9
commit
4b4f24057b
1 changed files with 6 additions and 1 deletions
|
@ -687,7 +687,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null)
|
|||
|
||||
$pathname = '';
|
||||
|
||||
|
||||
|
||||
// If we were called from the Photos module there is a slightly different mechanism
|
||||
// for setting the parent path than if we were called from the Files (cloud) module.
|
||||
|
||||
|
@ -707,6 +707,11 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null)
|
|||
$pathname = filepath_macro($album);
|
||||
}
|
||||
}
|
||||
elseif ($album && !$newalbum) {
|
||||
// We can land here from the profile_photo and cover_photo modules.
|
||||
// Just use the album provided.
|
||||
$pathname = filepath_macro($album);
|
||||
}
|
||||
|
||||
if (! $pathname) {
|
||||
$pathname = filepath_macro($upload_path);
|
||||
|
|
Loading…
Reference in a new issue