0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Serialized post html for email

no issue
This commit is contained in:
Rish 2019-11-07 11:15:16 +07:00
parent 898c354644
commit 86d6fc8578

View file

@ -13,6 +13,7 @@ const getSite = () => {
const serialize = (post) => {
post.published_at = post.published_at ? moment(post.published_at).format('DD MMM YYYY') : moment().format('DD MMM YYYY');
post.authors = post.authors && post.authors.map(author => author.name).join(',');
post.html = post.html || '';
if (post.posts_meta) {
post.email_subject = post.posts_meta.email_subject;
}