aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage/File.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-22 19:31:43 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 14:14:05 +0200
commitfe5f109af5f49811639779cf77dc25809be1b2a9 (patch)
tree72d280587b6e43e6f9aebcd84f30d7df8f63d260 /Zotlabs/Storage/File.php
parentf1da00302091c6b9005083d41686934385e97cf8 (diff)
downloadvolse-hubzilla-fe5f109af5f49811639779cf77dc25809be1b2a9.tar.gz
volse-hubzilla-fe5f109af5f49811639779cf77dc25809be1b2a9.tar.bz2
volse-hubzilla-fe5f109af5f49811639779cf77dc25809be1b2a9.zip
more cloud updates - upgrade the DAV structures as well.
Diffstat (limited to 'Zotlabs/Storage/File.php')
-rw-r--r--Zotlabs/Storage/File.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/Zotlabs/Storage/File.php b/Zotlabs/Storage/File.php
index d2bca3964..1475241ab 100644
--- a/Zotlabs/Storage/File.php
+++ b/Zotlabs/Storage/File.php
@@ -85,13 +85,23 @@ class File extends DAV\Node implements DAV\IFile {
intval($this->data['id'])
);
+ $x = attach_syspaths($this->auth->owner_id,$this->data['hash']);
+
+ $y = q("update attach set display_path = '%s where hash = '%s' and uid = %d",
+ dbesc($x['path']),
+ dbesc($this->data['hash']),
+ intval($this->auth->owner_id)
+ );
+
if($this->data->is_photo) {
- $r = q("update photo set filename = '%s' where resource_id = '%s' and uid = %d",
+ $r = q("update photo set filename = '%s', display_path = '%s' where resource_id = '%s' and uid = %d",
dbesc($newName),
+ dbesc($x['path']),
dbesc($this->data['hash']),
intval($this->auth->owner_id)
);
}
+
$ch = channelx_by_n($this->auth->owner_id);
if($ch) {
$sync = attach_export_data($ch,$this->data['hash']);