Skip to content

Commit

Permalink
fix(deps): Bumped nodemailer to force embedded images to content-disp…
Browse files Browse the repository at this point in the history
…osition:inline
  • Loading branch information
andris9 committed Oct 9, 2023
1 parent 03b822a commit 1fee80e
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 346 deletions.
5 changes: 3 additions & 2 deletions lib/api/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1779,13 +1779,14 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
let fileData = await storageHandler.get(userData._id, new ObjectId(file));
if (fileData) {
extraAttachments.push(fileData);
files.push({
let fileEntry = {
id: fileData.id,
filename: fileData.filename,
contentType: fileData.contentType,
size: fileData.size,
cid: fileData.cid
});
};
files.push(fileEntry);
}
} catch (err) {
log.error('API', 'STORAGEFAIL user=%s file=%s error=%s', userData._id, file, err.message);
Expand Down
Loading

0 comments on commit 1fee80e

Please sign in to comment.