From 021af2bc4cfc5690d7f29b5b506027e733fe7eb3 Mon Sep 17 00:00:00 2001 From: Michael An <2331806369@qq.com> Date: Fri, 11 Oct 2024 15:42:29 +0800 Subject: [PATCH] fix shared dir image thumbnail not load (#6873) --- frontend/src/shared-dir-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/shared-dir-view.js b/frontend/src/shared-dir-view.js index 3f72d4a94f..27213f9e98 100644 --- a/frontend/src/shared-dir-view.js +++ b/frontend/src/shared-dir-view.js @@ -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', };