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

Exposed @member.firstname in the theme data

no-issue

This is very basic split on whitespace for now
This commit is contained in:
Fabien O'Carroll 2019-10-09 11:47:01 +07:00
parent 7dc2eb2a1e
commit 079a64e46b

View file

@ -81,6 +81,7 @@ function updateLocalTemplateOptions(req, res, next) {
const member = req.member ? {
email: req.member.email,
name: req.member.name,
firstname: req.member.name && req.member.name.split(' ')[0],
subscriptions: req.member.stripe.subscriptions,
paid: req.member.stripe.subscriptions.length !== 0
} : null;