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>
This commit is contained in:
Vincent Petry 2021-03-04 15:54:21 +01:00
parent 49c46493d1
commit 5be9acab84
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
1 changed files with 1 additions and 1 deletions

View File

@ -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 || '';