aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-13 14:08:44 +0200
committerMax Kostikov <max@kostikov.co>2019-04-13 14:08:44 +0200
commit509067391b9e2b167827a7b999cb5ef455ac68d6 (patch)
treec34b363db46f4a63c3e025149d8ff07b98d78428 /include/import.php
parent04b261057d1123a43e72216ecc3c8172bbda32bc (diff)
downloadvolse-hubzilla-509067391b9e2b167827a7b999cb5ef455ac68d6.tar.gz
volse-hubzilla-509067391b9e2b167827a7b999cb5ef455ac68d6.tar.bz2
volse-hubzilla-509067391b9e2b167827a7b999cb5ef455ac68d6.zip
Update xchan profile edited date only once
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/import.php b/include/import.php
index 585a0ac84..434a53f10 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1417,8 +1417,6 @@ 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;
@@ -1428,6 +1426,7 @@ function sync_files($channel, $files) {
else {
$p['os_storage'] = 1;
$p['content'] = $stored_image;
+ $p['os_syspath'] = $stored_image;
}
}
@@ -1461,13 +1460,15 @@ function sync_files($channel, $files) {
}
}
- // Set xchan photo date to prevent thumbnails fetch for clones on profile update packet recieve
- if(isset($update_xchan)) {
- $x = q("UPDATE xchan SET xchan_photo_date = '%s' WHERE xchan_hash = '%s'",
- dbescdate($update_xchan),
- dbesc($channel['channel_hash'])
- );
- }
+ }
+
+ // Set xchan photo date to prevent thumbnails fetch for clones on profile update packet recieve
+ if(isset($update_xchan)) {
+
+ $x = q("UPDATE xchan SET xchan_photo_date = '%s' WHERE xchan_hash = '%s'",
+ dbescdate($update_xchan),
+ dbesc($channel['channel_hash'])
+ );
}
\Zotlabs\Daemon\Master::Summon([ 'Thumbnail' , $att['hash'] ]);