1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

rm ENABLE_THUMBNAIL

This commit is contained in:
skywalker
2021-07-27 11:38:38 +08:00
parent debc838898
commit 75e5eb4814
13 changed files with 24 additions and 33 deletions

View File

@@ -55,7 +55,7 @@ class FileContent extends React.Component {
// only for 'file view'. not for 'history/trash file view'
let thumbnailURL = '';
const fileExtList = ['tif', 'tiff', 'psd'];
if (this.props.canUseThumbnail && !repoEncrypted && fileExtList.includes(fileExt)) {
if (!repoEncrypted && fileExtList.includes(fileExt)) {
thumbnailURL = `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${Utils.encodePath(filePath)}`;
}