Fix: allow serving thumbnails that start with a dot

This commit is contained in:
Cohee
2026-02-13 01:07:24 +02:00
parent 614f404390
commit 1e49f3d4f1
+1 -1
View File
@@ -286,7 +286,7 @@ publicRouter.get('/', async function (request, response) {
if (fs.existsSync(pathToCachedFile)) {
invalidateFirefoxCache(pathToCachedFile, request, response);
return response.sendFile(path.resolve(pathToCachedFile));
return response.sendFile(file, { root: thumbnailFolder, dotfiles: 'allow' });
}
// Send a 404 so the frontend can display a placeholder