mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
local image storage fixes
This commit is contained in:
@@ -18,7 +18,7 @@ async function returnImage(req, res) {
|
||||
res.set('Content-Type', 'image/png');
|
||||
return res.send(fs.readFileSync(RESOURCE_DIR + '/db/image-deleted.png'));
|
||||
}
|
||||
image.mime = image.mime.replace("image/svg", "image/svg+xml");
|
||||
|
||||
res.set('Content-Type', image.mime);
|
||||
|
||||
res.send(await image.getContent());
|
||||
|
||||
Reference in New Issue
Block a user