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:
parent
63e6dd59fa
commit
a3802c495d
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue