summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMSe1969 <mse1969@posteo.de>2022-04-08 20:35:57 +0200
committerszaimen <szaimen@e.mail.de>2022-04-12 19:38:39 +0200
commit8a6bfcb9b87a0f8345de58454c0ca29264698044 (patch)
tree5c133acd6beeb58129b942eee0c4f38b85a16d56 /apps
parentab84519852bf569cdde2e10fae680b289645166d (diff)
downloadnextcloud-server-8a6bfcb9b87a0f8345de58454c0ca29264698044.tar.gz
nextcloud-server-8a6bfcb9b87a0f8345de58454c0ca29264698044.zip
Fix accept/reject remote share action
This is the fix for the described problem in https://github.com/nextcloud/server/issues/31301 Signed-off-by: MSe1969 <mse1969@posteo.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js
index dc03e31bf80..24416fd5a3f 100644
--- a/apps/files_sharing/js/app.js
+++ b/apps/files_sharing/js/app.js
@@ -303,7 +303,7 @@ OCA.Sharing.App = {
if (context.$file.attr('data-remote-id')) {
shareBase = 'remote_shares/pending'
}
- $.post(OC.linkToOCS('apps/files_sharing/api/v1/shares/pending', 2) + shareId)
+ $.post(OC.linkToOCS('apps/files_sharing/api/v1/' + shareBase, 2) + shareId)
.success(function(result) {
context.fileList.remove(context.fileInfoModel.attributes.name)
}).fail(function() {
@@ -330,11 +330,11 @@ OCA.Sharing.App = {
const shareId = context.$file.data('shareId')
let shareBase = 'shares'
if (context.$file.attr('data-remote-id')) {
- shareBase = 'remote_shares/pending'
+ shareBase = 'remote_shares'
}
$.ajax({
- url: OC.linkToOCS('apps/files_sharing/api/v1/shares', 2) + shareId,
+ url: OC.linkToOCS('apps/files_sharing/api/v1/' + shareBase, 2) + shareId,
type: 'DELETE',
}).success(function(result) {
context.fileList.remove(context.fileInfoModel.attributes.name)