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:
parent
898c354644
commit
86d6fc8578
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue