diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-16 09:02:08 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-16 09:37:48 +0100 |
commit | 140d5f7df3c7506e55bea250c4fb1fa40c1cd10b (patch) | |
tree | c6202c53ee316f93cf1f718002dc2df937e70c37 | |
parent | 631ae2f0f4eda0da1c03bfc1a9a32e8cf7a926a7 (diff) | |
download | nextcloud-server-140d5f7df3c7506e55bea250c4fb1fa40c1cd10b.tar.gz nextcloud-server-140d5f7df3c7506e55bea250c4fb1fa40c1cd10b.zip |
Make sure to append the web root as per doc
-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 6da95ed6549..1d2c715da8c 100644 --- a/apps/files_sharing/api/server2server.php +++ b/apps/files_sharing/api/server2server.php @@ -107,12 +107,12 @@ class Server2Server { $declineAction = $notification->createAction(); $declineAction->setLabel('decline') - ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $shareId), 'DELETE'); + ->setLink($urlGenerator->getAbsoluteURL($urlGenerator->linkTo('', 'ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $shareId)), 'DELETE'); $notification->addAction($declineAction); $acceptAction = $notification->createAction(); $acceptAction->setLabel('accept') - ->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $shareId), 'POST'); + ->setLink($urlGenerator->getAbsoluteURL($urlGenerator->linkTo('', 'ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/' . $shareId)), 'POST'); $notification->addAction($acceptAction); $notificationManager->notify($notification); |