summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 4a2f0ff08b2..67a0410ef76 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -91,6 +91,9 @@ class Shared_Cache extends Cache {
$data = $cache->get($this->files[$file]);
$data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom());
$data['path'] = $path;
+ if ($file === '') {
+ $data['is_share_mount_point'] = true;
+ }
return $data;
}
} else {
@@ -123,6 +126,7 @@ class Shared_Cache extends Cache {
}
if (isset($mountPoint)) {
$data['path'] = 'files/' . $mountPoint;
+ $data['is_share_mount_point'] = true;
}
return $data;
}