ref: Collapse image data into one column

This commit is contained in:
Maksim Eltyshev
2022-06-21 12:01:41 +02:00
parent e7495e0067
commit 6268ced4cb
10 changed files with 102 additions and 86 deletions

View File

@@ -53,7 +53,7 @@ module.exports = {
}
this.res.type(attachment.filename);
if (!attachment.isImage && path.extname(attachment.filename) !== '.pdf') {
if (!attachment.image && path.extname(attachment.filename) !== '.pdf') {
this.res.set('Content-Disposition', 'attachment');
}
this.res.set('Cache-Control', 'private, max-age=900'); // TODO: move to config