From 2d6e50a8dbb075b533b31de91f015f636cc40f4e Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Thu, 6 Jul 2023 18:56:41 +0200 Subject: fix: legacy files favorite event node type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/js/tagsplugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js index 78bd7eec557..1b49c1df14a 100644 --- a/apps/files/js/tagsplugin.js +++ b/apps/files/js/tagsplugin.js @@ -111,6 +111,7 @@ var fileInfo = context.fileList.files[$file.index()]; var dir = context.dir || context.fileList.getCurrentDirectory(); var tags = $file.attr('data-tags'); + var isFile = $file.attr('data-type') === 'file'; if (_.isUndefined(tags)) { tags = ''; @@ -121,7 +122,7 @@ // Fake Node object for vue compatibility const node = { - type: 'folder', + type: isFile ? 'file' : 'folder', path: (dir + '/' + fileName).replace(/\/\/+/g, '/'), root: '/files/' + OC.getCurrentUser().uid } -- cgit v1.2.3