aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-06 18:56:41 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-11 13:52:28 +0200
commit2d6e50a8dbb075b533b31de91f015f636cc40f4e (patch)
tree22e2801184a6d1f46c63d009b3ac667a4ca05561 /apps/files/js
parentf5f142d31be7e5e61bbf78e2a37d84bf7349a658 (diff)
downloadnextcloud-server-2d6e50a8dbb075b533b31de91f015f636cc40f4e.tar.gz
nextcloud-server-2d6e50a8dbb075b533b31de91f015f636cc40f4e.zip
fix: legacy files favorite event node type
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/tagsplugin.js3
1 files changed, 2 insertions, 1 deletions
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
}