summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-19 23:14:06 +0200
committerVincent Petry <vincent@nextcloud.com>2021-07-27 12:20:01 +0200
commit3deffc31615fa118565084ff2901affaf7d0a403 (patch)
treeb27619d04c9844f509ba45787bb468eb048fb218 /apps/files_sharing
parente8f4a524a2ae917c62710dd635df2740081bc83f (diff)
downloadnextcloud-server-3deffc31615fa118565084ff2901affaf7d0a403.tar.gz
nextcloud-server-3deffc31615fa118565084ff2901affaf7d0a403.zip
Use mimetype instead of type when defaulting in remote shares
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index bd3de5031ab..41bfbd2603e 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -355,7 +355,7 @@
file.shareOwnerId = share.owner
}
- if (!file.type) {
+ if (!file.mimetype) {
// pending shares usually have no type, so default to showing a directory icon
file.mimetype = 'dir-shared'
}