Fix: allow serving thumbnails that start with a dot

1e49f3d4f13d2960053d313eaef1f679b968b9f5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
src/endpoints/thumbnails.js+1 -1
@@ -286,7 +286,7 @@ publicRouter.get('/', async function (request, response) {
286286
287287 if (fs.existsSync(pathToCachedFile)) {
288288 invalidateFirefoxCache(pathToCachedFile, request, response);
289- return response.sendFile(path.resolve(pathToCachedFile));
289+ return response.sendFile(file, { root: thumbnailFolder, dotfiles: 'allow' });
290290 }
291291
292292 // Send a 404 so the frontend can display a placeholder