aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-13 17:53:14 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 15:02:19 +0200
commit72d24555773aeffd2481b59e54e866632a1c763c (patch)
tree1f3f2943a5a75d0520264ca878deec67b0787589 /apps/files_sharing/lib
parent660b5d1af6e712b4f42a71ba861b22dcb7e95ee6 (diff)
downloadnextcloud-server-72d24555773aeffd2481b59e54e866632a1c763c.tar.gz
nextcloud-server-72d24555773aeffd2481b59e54e866632a1c763c.zip
return the as well note if we fetch a share
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 816ecde9c40..33782d21b5f 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -144,6 +144,7 @@ class ShareAPIController extends OCSController {
'expiration' => null,
'token' => null,
'uid_file_owner' => $share->getShareOwner(),
+ 'note' => $share->getNote(),
'displayname_file_owner' => $shareOwner !== null ? $shareOwner->getDisplayName() : $share->getShareOwner(),
];