mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed missing space between authors in emails
no issue - author line was appearing as "Author One,Author Two,..." with no space - fixed the generation of `post.authors` when serializing a post before it's rendered for email
This commit is contained in:
parent
0e4be5a390
commit
0c6cd37679
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ const serialize = async (postModel, options = {isBrowserPreview: false, apiVersi
|
||||||
const momentDate = post.published_at ? moment(post.published_at) : moment();
|
const momentDate = post.published_at ? moment(post.published_at) : moment();
|
||||||
post.published_at = momentDate.tz(timezone).format('DD MMM YYYY');
|
post.published_at = momentDate.tz(timezone).format('DD MMM YYYY');
|
||||||
|
|
||||||
post.authors = post.authors && post.authors.map(author => author.name).join(',');
|
post.authors = post.authors && post.authors.map(author => author.name).join(', ');
|
||||||
if (post.posts_meta) {
|
if (post.posts_meta) {
|
||||||
post.email_subject = post.posts_meta.email_subject;
|
post.email_subject = post.posts_meta.email_subject;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue