summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-04-12 20:29:49 +0200
committerGitHub <noreply@github.com>2022-04-12 20:29:49 +0200
commitdf14579173708b380f75a6f5680748e37fdbc419 (patch)
tree5c133acd6beeb58129b942eee0c4f38b85a16d56 /apps
parentab84519852bf569cdde2e10fae680b289645166d (diff)
parent8a6bfcb9b87a0f8345de58454c0ca29264698044 (diff)
downloadnextcloud-server-df14579173708b380f75a6f5680748e37fdbc419.tar.gz
nextcloud-server-df14579173708b380f75a6f5680748e37fdbc419.zip
Merge pull request #31910 from MSe1969/master
Fix accept/reject remote share action #31301
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)