summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-17 19:43:32 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-08-28 12:02:17 +0000
commit5df53bd0fd45a3bf58a81608bd339d58fb76f1dc (patch)
tree7f610260f146712ea6243f86711d91f67dd62644 /apps/files_sharing/lib/SharedStorage.php
parent68ae8706d83f726e4189059516008aa2a8863429 (diff)
downloadnextcloud-server-5df53bd0fd45a3bf58a81608bd339d58fb76f1dc.tar.gz
nextcloud-server-5df53bd0fd45a3bf58a81608bd339d58fb76f1dc.zip
pass the share to the cache instead of having to ask the storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib/SharedStorage.php')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index 5243c8d1594..c9d8fbffc64 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -415,7 +415,8 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
$this->cache = new \OCA\Files_Sharing\Cache(
$storage,
$sourceRoot,
- \OC::$server->get(DisplayNameCache::class)
+ \OC::$server->get(DisplayNameCache::class),
+ $this->getShare()
);
return $this->cache;
}