mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🐛 Fixed email card replacements showing raw replacement text in emails
closes https://github.com/TryGhost/Ghost/issues/12257 - there was a destructuring problem introduced in the recent email refactor which meant the correct replacement data was not being passed over to the Mailgun provider when sending email
This commit is contained in:
parent
4f211d025d
commit
cde364bf27
1 changed files with 2 additions and 2 deletions
|
@ -221,8 +221,8 @@ module.exports = {
|
|||
recipient.member_first_name = (recipient.member_name || '').split(' ')[0];
|
||||
|
||||
// dynamic data from replacements
|
||||
replacements.forEach((id, recipientProp, fallback) => {
|
||||
data[id] = recipient[recipientProp] || fallback || '';
|
||||
replacements.forEach(({id, recipientProperty, fallback}) => {
|
||||
data[id] = recipient[recipientProperty] || fallback || '';
|
||||
});
|
||||
|
||||
recipientData[recipient.member_email] = data;
|
||||
|
|
Loading…
Add table
Reference in a new issue