From 9f7973a70eb9afc0292b4ab8a0f4e84650463a03 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 4 Mar 2021 15:54:21 +0100 Subject: [PATCH] Skip empty obsolete owner when adding to own NC The owner field is nowadays always empty when adding a federated share using "Add to your Nextcloud", so don't check for it. Fixes an issue where "Add to your Nextcloud" doesn't add anything. Signed-off-by: Vincent Petry --- apps/federatedfilesharing/js/external.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/federatedfilesharing/js/external.js b/apps/federatedfilesharing/js/external.js index dd39bcde1e..40bb935b5c 100644 --- a/apps/federatedfilesharing/js/external.js +++ b/apps/federatedfilesharing/js/external.js @@ -99,7 +99,7 @@ var fileList = this.filesApp.fileList; var params = OC.Util.History.parseUrlQuery(); // manually add server-to-server share - if (params.remote && params.token && params.owner && params.name) { + if (params.remote && params.token && params.name) { var callbackAddShare = function(result, share) { var password = share.password || '';