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 committed by backportbot[bot]
parent d81954f913
commit 9f7973a70e
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 || '';