diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-08-20 11:31:21 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-09-06 13:50:52 +0200 |
commit | c43353d6e6d999996a0645a84f7b88b72a5e0345 (patch) | |
tree | 20842c45e9d3a81dcc6d56aa33645ac9e714c925 /apps/files_sharing/lib | |
parent | 46340d1d398548aa1a93607b7b13852146f50c9e (diff) | |
download | nextcloud-server-c43353d6e6d999996a0645a84f7b88b72a5e0345.tar.gz nextcloud-server-c43353d6e6d999996a0645a84f7b88b72a5e0345.zip |
fix: Display 'Leave share' instead of 'Delete'
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/ResponseDefinitions.php | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 3f8062ac2c9..d40b3d862ee 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -159,6 +159,10 @@ class ShareAPIController extends OCSController { $result['item_permissions'] = $node->getPermissions(); } + // See MOUNT_ROOT_PROPERTYNAME dav property + $result['is-mount-root'] = $node->getInternalPath() === ''; + $result['mount-type'] = $node->getMountPoint()->getMountType(); + $result['mimetype'] = $node->getMimetype(); $result['has_preview'] = $this->previewManager->isAvailable($node); $result['storage_id'] = $node->getStorage()->getId(); diff --git a/apps/files_sharing/lib/ResponseDefinitions.php b/apps/files_sharing/lib/ResponseDefinitions.php index 9a6ef199169..774e4c17e00 100644 --- a/apps/files_sharing/lib/ResponseDefinitions.php +++ b/apps/files_sharing/lib/ResponseDefinitions.php @@ -22,6 +22,7 @@ namespace OCA\Files_Sharing; * file_target: string, * has_preview: bool, * hide_download: 0|1, + * is-mount-root: bool, * id: string, * item_mtime: int, * item_permissions?: int, @@ -31,6 +32,7 @@ namespace OCA\Files_Sharing; * label: ?string, * mail_send: 0|1, * mimetype: string, + * mount-type: string, * note: string, * parent: null, * password?: null|string, |