summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-09 16:11:41 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-10 08:40:45 +0100
commitcb8024ca145e05614e9907e2e9102656eadb0d50 (patch)
tree68b5f923b9ecdb92f493fdd0c24ae56c721cc2f3
parent49dd693d8fc76ca055bdd2b1ab299ffe3c60fa16 (diff)
downloadnextcloud-server-cb8024ca145e05614e9907e2e9102656eadb0d50.tar.gz
nextcloud-server-cb8024ca145e05614e9907e2e9102656eadb0d50.zip
Fix action paths
-rw-r--r--apps/files_sharing/api/server2server.php4
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);