Fix: allow serving thumbnails that start with a dot
| @@ -286,7 +286,7 @@ publicRouter.get('/', async function (request, response) { | |||
| 286 | 286 | ||
| 287 | if (fs.existsSync(pathToCachedFile)) { | 287 | if (fs.existsSync(pathToCachedFile)) { |
| 288 | invalidateFirefoxCache(pathToCachedFile, request, response); | 288 | invalidateFirefoxCache(pathToCachedFile, request, response); |
| 289 | return response.sendFile(path.resolve(pathToCachedFile)); | 289 | return response.sendFile(file, { root: thumbnailFolder, dotfiles: 'allow' }); |
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | // Send a 404 so the frontend can display a placeholder | 292 | // Send a 404 so the frontend can display a placeholder |