local image storage fixes

This commit is contained in:
zadam
2020-03-25 18:21:55 +01:00
parent 8a92786012
commit ef61e22f1f
4 changed files with 18 additions and 8 deletions

View File

@@ -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());