0
Fork 0
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:
Kevin Ansfield 2021-10-22 14:40:42 +01:00
parent 0e4be5a390
commit 0c6cd37679

View file

@ -227,7 +227,7 @@ const serialize = async (postModel, options = {isBrowserPreview: false, apiVersi
const momentDate = post.published_at ? moment(post.published_at) : moment();
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) {
post.email_subject = post.posts_meta.email_subject;
}