Browse Source

Fix action paths

tags/v9.0beta1
Joas Schilling 8 years ago
parent
commit
cb8024ca14
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files_sharing/api/server2server.php

+ 2
- 2
apps/files_sharing/api/server2server.php View File

@@ -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);

Loading…
Cancel
Save