From 4c0135e1884927f5b3671166112656875e1b98c8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 14 Jul 2017 15:50:59 -0400 Subject: [PATCH] fixed missing payload items in invitation email --- src/user/invite.js | 3 +++ src/views/emails/banned.tpl | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/user/invite.js b/src/user/invite.js index 3e6fdef359..d3d7189296 100644 --- a/src/user/invite.js +++ b/src/user/invite.js @@ -85,6 +85,9 @@ module.exports = function (User) { template: 'invitation', }; + // Append default data to this email payload + data = Object.assign({}, emailer._defaultPayload, data); + emailer.sendToEmail('invitation', email, meta.config.defaultLang, data, next); }); }, diff --git a/src/views/emails/banned.tpl b/src/views/emails/banned.tpl index 9c25ea9d9e..db8975c993 100644 --- a/src/views/emails/banned.tpl +++ b/src/views/emails/banned.tpl @@ -29,7 +29,6 @@ -

[[email:greeting_with_name, {username}]]

[[email:banned.text3]]

{reason}