From e98c0225d8c6189e2fdefafcc3a203b469a08654 Mon Sep 17 00:00:00 2001 From: Mahdi Baghbani Date: Sat, 17 May 2025 11:18:14 +0000 Subject: [PATCH] fix: incorrect DELETE on federated-share acceptance Signed-off-by: Mahdi Baghbani Signed-off-by: nextcloud-command [skip ci] --- apps/federatedfilesharing/src/external.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/federatedfilesharing/src/external.js b/apps/federatedfilesharing/src/external.js index 68cc958b7b55d..3581a24e95a94 100644 --- a/apps/federatedfilesharing/src/external.js +++ b/apps/federatedfilesharing/src/external.js @@ -35,7 +35,8 @@ window.OCA.Sharing.showAddExternalDialog = function(share, passwordProtected, ca .replace(/\/$/, '') // remove trailing slash showRemoteShareDialog(name, owner, remote, passwordProtected) - .then((result, password) => callback(result, { ...share, password })) + // eslint-disable-next-line n/no-callback-literal + .then((password) => callback(true, { ...share, password })) // eslint-disable-next-line n/no-callback-literal .catch(() => callback(false, share)) }