Fix action paths
This commit is contained in:
parent
49dd693d8f
commit
cb8024ca14
|
@ -100,12 +100,12 @@ class Server2Server {
|
||||||
|
|
||||||
$declineAction = $notification->createAction();
|
$declineAction = $notification->createAction();
|
||||||
$declineAction->setLabel('decline')
|
$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);
|
$notification->addAction($declineAction);
|
||||||
|
|
||||||
$acceptAction = $notification->createAction();
|
$acceptAction = $notification->createAction();
|
||||||
$acceptAction->setLabel('accept')
|
$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);
|
$notification->addAction($acceptAction);
|
||||||
|
|
||||||
$notificationManager->notify($notification);
|
$notificationManager->notify($notification);
|
||||||
|
|
Loading…
Reference in New Issue