1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-30 13:23:14 +00:00

fix shared dir image thumbnail not load (#6873)

This commit is contained in:
Michael An 2024-10-11 15:42:29 +08:00 committed by GitHub
parent 9b27549cef
commit 021af2bc4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,7 +325,7 @@ class SharedDirView extends React.Component {
return {
'name': name,
'url': fileURL,
'thumbnail': `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${item.file_path}`,
'thumbnail': `${siteRoot}thumbnail/${token}/${thumbnailSizeForOriginal}${Utils.encodePath(item.file_path)}`,
'src': src,
'downloadURL': fileURL + '&dl=1',
};