diff options
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index c9853f1e12c..96b105aae49 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -449,6 +449,7 @@ class ShareAPIController extends OCSController { string $password = '', string $sendPasswordByTalk = null, string $expireDate = '', + string $note = '', string $label = '' ): DataResponse { $share = $this->shareManager->newShare(); @@ -653,6 +654,10 @@ class ShareAPIController extends OCSController { $share->setShareType($shareType); $share->setSharedBy($this->currentUser); + if ($note !== '') { + $share->setNote($note); + } + try { $share = $this->shareManager->createShare($share); } catch (GenericShareException $e) { |