0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed {subscriber_firstname} not picking up member's name in emails

no issue

- in our replacements the member properties are prefixed with `subscriber_` but this wasn't taken into account when requesting data from the member object
This commit is contained in:
Kevin Ansfield 2020-04-17 12:13:32 +01:00
parent 8853067830
commit d0393b6223

View file

@ -31,7 +31,7 @@ const getEmailData = async (postModel, members = []) => {
replacements.push({
varName,
memberProp,
memberProp: memberProp.replace('subscriber_', ''),
fallback
});
return `%recipient.${varName}%`;