From 0c6cd37679ead53ac5947d99820758644f67ab2f Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 22 Oct 2021 14:40:42 +0100 Subject: [PATCH] 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 --- core/server/services/mega/post-email-serializer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/services/mega/post-email-serializer.js b/core/server/services/mega/post-email-serializer.js index b65a26af63..0057e986f9 100644 --- a/core/server/services/mega/post-email-serializer.js +++ b/core/server/services/mega/post-email-serializer.js @@ -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; }