diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-05-28 17:13:19 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:28 +0200 |
commit | bbce8c3ea1c73726f233961fe7bdb16b8a08bb67 (patch) | |
tree | e3f345e7e2e6f5d21947013331af1f83593fb20a /apps/files_sharing/lib | |
parent | daba042d269bfd701c78e014c0ad7794975d2133 (diff) | |
download | nextcloud-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.php | 12 |
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); } |