aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareAPIController.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-06 18:35:53 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-11 13:52:28 +0200
commitf5f142d31be7e5e61bbf78e2a37d84bf7349a658 (patch)
tree27fa1d9ed605a879635d547387f9fde6ad21eec5 /apps/files_sharing/lib/Controller/ShareAPIController.php
parentb0418f730f183e74df155adf1327f8489bbc56bf (diff)
downloadnextcloud-server-f5f142d31be7e5e61bbf78e2a37d84bf7349a658.tar.gz
nextcloud-server-f5f142d31be7e5e61bbf78e2a37d84bf7349a658.zip
fix: adjust testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller/ShareAPIController.php')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index e80412f18b4..5d5015cfca6 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -232,7 +232,7 @@ class ShareAPIController extends OCSController {
// Get the original node permission if the share owner is the current user
if ($isOwnShare) {
- $result['permissions'] = $node->getPermissions();
+ $result['item_permissions'] = $node->getPermissions();
}
$result['mimetype'] = $node->getMimetype();
@@ -243,8 +243,8 @@ class ShareAPIController extends OCSController {
$result['file_source'] = $node->getId();
$result['file_parent'] = $node->getParent()->getId();
$result['file_target'] = $share->getTarget();
- $result['size'] = $node->getSize();
- $result['mtime'] = $node->getMTime();
+ $result['item_size'] = $node->getSize();
+ $result['item_mtime'] = $node->getMTime();
$expiration = $share->getExpirationDate();
if ($expiration !== null) {