Merge pull request #105 from the-luap/fix/codeql-v4-upgrade

fix: watermark thumbnails, custom logo display, and German translations
This commit is contained in:
Paul Nothaft
2026-01-15 08:02:28 -05:00
committed by GitHub
6 changed files with 73 additions and 8 deletions
+11 -2
View File
@@ -829,8 +829,17 @@ router.get('/:slug/thumbnail/:photoId',
'X-Protected-Thumbnail': 'true'
});
// Send file
res.sendFile(path.resolve(thumbPath));
// Check if watermarks are enabled and apply to thumbnail
const watermarkSettings = await watermarkService.getWatermarkSettings();
if (watermarkSettings && watermarkSettings.enabled) {
// Apply watermark to thumbnail
const watermarkedBuffer = await watermarkService.applyWatermark(thumbPath, watermarkSettings);
res.send(watermarkedBuffer);
} else {
// Send file without watermark
res.sendFile(path.resolve(thumbPath));
}
} catch (error) {
logger.error('Error serving thumbnail:', {
error: error.message,