From 66d5697ca0fb378899bb8c678fa210972b3d0c98 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 19 Sep 2023 10:54:48 +0200 Subject: [PATCH] fix(sharing): set name to target name in sharing cache Fixes #39879. Signed-off-by: Max --- apps/files_sharing/lib/Cache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 594660661cabb..b5c41bc68344b 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -162,6 +162,7 @@ protected function formatCacheEntry($entry, $path = null) { } else { $entry['permissions'] = $this->storage->getPermissions($entry['path']); } + $entry['name'] = basename($this->share->getTarget()); } catch (StorageNotAvailableException $e) { // thrown by FailedStorage e.g. when the sharer does not exist anymore // (IDE may say the exception is never thrown – false negative)