aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External/Manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/External/Manager.php')
-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);
}