mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix(sharing): set name to target name in sharing cache
Fixes #39879. Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
bb912ad47c
commit
be373fca3c
1 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,10 @@ class Cache extends CacheJail {
|
|||
} else {
|
||||
$entry['permissions'] = $this->storage->getPermissions($entry['path']);
|
||||
}
|
||||
|
||||
if ($this->share->getNodeId() === $entry['fileid']) {
|
||||
$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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue