aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-12 22:34:32 +0200
committerMax Kostikov <max@kostikov.co>2019-04-12 22:34:32 +0200
commit04b261057d1123a43e72216ecc3c8172bbda32bc (patch)
treea537ff296dafea954cdc5390c7ec3e46e136dda5 /include
parent852343f25448a996298b3b5f892a61b0b7701c7f (diff)
downloadvolse-hubzilla-04b261057d1123a43e72216ecc3c8172bbda32bc.tar.gz
volse-hubzilla-04b261057d1123a43e72216ecc3c8172bbda32bc.tar.bz2
volse-hubzilla-04b261057d1123a43e72216ecc3c8172bbda32bc.zip
Set 'os_syspath' with local path
Diffstat (limited to 'include')
-rw-r--r--include/import.php3
1 files changed, 2 insertions, 1 deletions
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;
}
}