From 04b261057d1123a43e72216ecc3c8172bbda32bc Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Fri, 12 Apr 2019 22:34:32 +0200 Subject: Set 'os_syspath' with local path --- include/import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 69be521de..585a0ac84 100644 --- a/include/import.php +++ b/include/import.php @@ -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; } } -- cgit v1.2.3