Addfeature: showing action in system message when user deleted/edited comments, plus changing email content \n to <br/>

This commit is contained in:
Sam X. Chen 2019-08-13 09:28:42 -04:00
parent 8d76db91b8
commit a666883986
3 changed files with 9 additions and 2 deletions

View file

@ -13,9 +13,9 @@ Meteor.startup(() => {
const lan = user.getLanguage();
const subject = TAPi18n.__(title, params, lan); // the original function has a fault, i believe the title should be used according to original author
const existing = user.getEmailBuffer().length > 0;
const text = `${existing ? `\n${subject}\n` : ''}${
const text = `${existing ? `<br/>\n${subject}<br/>\n` : ''}${
params.user
} ${TAPi18n.__(description, quoteParams, lan)}\n${params.url}`;
} ${TAPi18n.__(description, quoteParams, lan)}<br/>\n${params.url}`;
user.addEmailBuffer(text);