mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 00:46:38 +01:00
Fix disable thumbnails
This commit is contained in:
parent
02f9aded4b
commit
7a325f03ea
@ -3129,7 +3129,7 @@ app.get('/thumbnail', jsonParser, async function (request, response) {
|
||||
}
|
||||
|
||||
if (config.disableThumbnails == true) {
|
||||
let folder = getOriginalFolder(file)
|
||||
let folder = getOriginalFolder(type);
|
||||
if (folder === undefined) return response.sendStatus(400);
|
||||
const pathToOriginalFile = path.join(folder, file);
|
||||
return response.sendFile(pathToOriginalFile, { root: process.cwd() });
|
||||
|
Loading…
Reference in New Issue
Block a user