aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-04 15:54:21 +0100
committerVincent Petry <vincent@nextcloud.com>2021-03-04 15:54:21 +0100
commit5be9acab84d8c0365d403f09b7c22a559ef40d2a (patch)
tree1e9a66e19820b082900f209d71868fdbd5b74862 /apps/federatedfilesharing/js
parent49c46493d1c4fab800bcb26e63bc979907cd20f7 (diff)
downloadnextcloud-server-5be9acab84d8c0365d403f09b7c22a559ef40d2a.tar.gz
nextcloud-server-5be9acab84d8c0365d403f09b7c22a559ef40d2a.zip
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 <vincent@nextcloud.com>
Diffstat (limited to 'apps/federatedfilesharing/js')
-rw-r--r--apps/federatedfilesharing/js/external.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/js/external.js b/apps/federatedfilesharing/js/external.js
index dd39bcde1e6..40bb935b5c5 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 || '';