mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix small formatting mistake
This commit is contained in:
@ -2098,10 +2098,10 @@ app.get('/thumbnail', jsonParser, async function (request, response) {
|
||||
return response.sendStatus(403);
|
||||
}
|
||||
|
||||
if (config.disableThumbnails == true) {
|
||||
const pathToOriginalFile = path.join(getOriginalFolder(type), file);
|
||||
return response.sendFile(pathToOriginalFile, { root: __dirname });
|
||||
}
|
||||
if (config.disableThumbnails == true) {
|
||||
const pathToOriginalFile = path.join(getOriginalFolder(type), file);
|
||||
return response.sendFile(pathToOriginalFile, { root: __dirname });
|
||||
}
|
||||
|
||||
const pathToCachedFile = await generateThumbnail(type, file);
|
||||
|
||||
|
Reference in New Issue
Block a user