Skip to content

Commit

Permalink
fix shared dir image thumbnail not load
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Oct 11, 2024
1 parent 7ec86d5 commit c320b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/shared-dir-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down

0 comments on commit c320b51

Please sign in to comment.