mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-30 20:00:12 +02: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) {
|
if (config.disableThumbnails == true) {
|
||||||
let folder = getOriginalFolder(file)
|
let folder = getOriginalFolder(type);
|
||||||
if (folder === undefined) return response.sendStatus(400);
|
if (folder === undefined) return response.sendStatus(400);
|
||||||
const pathToOriginalFile = path.join(folder, file);
|
const pathToOriginalFile = path.join(folder, file);
|
||||||
return response.sendFile(pathToOriginalFile, { root: process.cwd() });
|
return response.sendFile(pathToOriginalFile, { root: process.cwd() });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user