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:
parent
7dc2eb2a1e
commit
079a64e46b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue