aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-12 15:38:10 +0200
committerMax Kostikov <max@kostikov.co>2019-04-12 15:38:10 +0200
commitd3a619659f4815c648603698c13a752d4be3f673 (patch)
tree7347bcd88ac0c9c71469a32d3db91be18e2164c4
parent979f2415fba6d690e0c9d244e28437908b481a48 (diff)
downloadvolse-hubzilla-d3a619659f4815c648603698c13a752d4be3f673.tar.gz
volse-hubzilla-d3a619659f4815c648603698c13a752d4be3f673.tar.bz2
volse-hubzilla-d3a619659f4815c648603698c13a752d4be3f673.zip
Fix 'os_syspath' if we store thumbnails in filesystem
-rw-r--r--include/import.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/import.php b/include/import.php
index d1d786321..0a70b114c 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1423,8 +1423,10 @@ function sync_files($channel, $files) {
$p['content'] = file_get_contents($stored_image);
@unlink($stored_image);
}
- else
+ else {
$p['os_storage'] = 1;
+ $p['os_syspath'] = $stored_image;
+ }
}
if(!isset($p['display_path']))