summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-05-28 17:13:19 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-02 11:29:28 +0200
commitbbce8c3ea1c73726f233961fe7bdb16b8a08bb67 (patch)
treee3f345e7e2e6f5d21947013331af1f83593fb20a /apps/files_sharing/lib
parentdaba042d269bfd701c78e014c0ad7794975d2133 (diff)
downloadnextcloud-server-bbce8c3ea1c73726f233961fe7bdb16b8a08bb67.tar.gz
nextcloud-server-bbce8c3ea1c73726f233961fe7bdb16b8a08bb67.zip
adjust to latest api version
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/External/Manager.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index cb1e947f603..0bbbbea7675 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -324,7 +324,7 @@ class Manager {
*
* @param string $remoteDomain
* @param string $token
- * @param $remoteId
+ * @param $remoteId id of the share
* @param string $feedback
* @return mixed
*/
@@ -332,11 +332,15 @@ class Manager {
switch ($feedback) {
case 'accept':
$notification = $this->cloudFederationFactory->getCloudFederationNotification();
- $notification->setMessage('SHARE_ACCEPTED', 'file',
+ $notification->setMessage(
+ 'SHARE_ACCEPTED',
+ 'file',
+ $remoteId,
[
- 'id' => $remoteId,
- 'access_token' => $token
+ 'sharedSecret' => $token,
+ 'message' => 'Recipient accept the share'
]
+
);
return $this->cloudFederationProviderManager->sendNotification($remoteDomain, $notification);
}