mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
ref: Collapse image data into one column
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user