Set 'os_syspath' with local path

This commit is contained in:
Max Kostikov 2019-04-12 22:34:32 +02:00
parent 852343f254
commit 04b261057d

View File

@ -1417,6 +1417,8 @@ function sync_files($channel, $files) {
$x = z_post_url($fetch_url,$parr,$redirects,[ 'filep' => $fp, 'headers' => $headers]);
fclose($fp);
$p['os_syspath'] = $stored_image;
// Override remote hub thumbnails storage settings
if(! boolval(get_config('system','filesystem_storage_thumbnails', 0))) {
$p['os_storage'] = 0;
@ -1425,7 +1427,6 @@ function sync_files($channel, $files) {
}
else {
$p['os_storage'] = 1;
$p['os_syspath'] = $stored_image;
$p['content'] = $stored_image;
}
}