diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-09 16:11:41 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-10 08:40:45 +0100 |
commit | cb8024ca145e05614e9907e2e9102656eadb0d50 (patch) | |
tree | 68b5f923b9ecdb92f493fdd0c24ae56c721cc2f3 | |
parent | 49dd693d8fc76ca055bdd2b1ab299ffe3c60fa16 (diff) | |
download | nextcloud-server-cb8024ca145e05614e9907e2e9102656eadb0d50.tar.gz nextcloud-server-cb8024ca145e05614e9907e2e9102656eadb0d50.zip |
Fix action paths
-rw-r--r-- | apps/files_sharing/api/server2server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/api/server2server.php b/apps/files_sharing/api/server2server.php index c183c91b5fa..e308c54c111 100644 --- a/apps/files_sharing/api/server2server.php +++ b/apps/files_sharing/api/server2server.php @@ -100,12 +100,12 @@ class Server2Server { $declineAction = $notification->createAction(); $declineAction->setLabel('decline') - ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/' . $remoteId), 'DELETE'); + ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $remoteId), 'DELETE'); $notification->addAction($declineAction); $acceptAction = $notification->createAction(); $acceptAction->setLabel('accept') - ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/' . $remoteId), 'POST'); + ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $remoteId), 'POST'); $notification->addAction($acceptAction); $notificationManager->notify($notification); |