From 793ef36b4868f1d6d710e1c7a03186dae7897d53 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 16 Nov 2018 20:41:38 +0100 Subject: [PATCH] Fix NextcloudFolders#updateBookmar: Don't append() on JSON object Fixes #196 --- src/lib/adapters/NextcloudFolders.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/adapters/NextcloudFolders.js b/src/lib/adapters/NextcloudFolders.js index 1a41774ad6..036ff05dfd 100644 --- a/src/lib/adapters/NextcloudFolders.js +++ b/src/lib/adapters/NextcloudFolders.js @@ -439,11 +439,10 @@ export default class NextcloudFoldersAdapter extends Adapter { folders: bms .map(bm => bm.parentId) .filter(parentId => parentId !== oldParentId) - .concat([newBm.parentId]) + .concat([newBm.parentId]), + tags: bms[0].tags }) - bms[0].tags.forEach(tag => body.append('item[tags][]', tag)) - await this.sendRequest( 'PUT', `index.php/apps/bookmarks/public/rest/v2/bookmark/${upstreamId}`,