0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed post serialization to keep plaintext in json

no issue

- Fixes missing plaintext on email preview
- Fixes tests
This commit is contained in:
Rish 2019-11-27 10:57:48 +05:30
parent 63e6dd59fa
commit a3802c495d

View file

@ -37,7 +37,7 @@ const createUnsubscribeUrl = (member) => {
// NOTE: serialization is needed to make sure we are using current API and do post transformations
// such as image URL transformation from relative to absolute
const serializePostModel = async (model) => {
const frame = {options: {context: {user: true}}};
const frame = {options: {context: {user: true}, formats: 'html, plaintext'}};
const apiVersion = model.get('api_version') || 'v3';
const docName = 'posts';