Skip to content

Commit

Permalink
Fixed post serialization to keep plaintext in json
Browse files Browse the repository at this point in the history
no issue

- Fixes missing plaintext on email preview
- Fixes tests
  • Loading branch information
rishabhgrg committed Nov 27, 2019
1 parent 63e6dd5 commit a3802c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/services/mega/post-email-serializer.js
Expand Up @@ -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';

Expand Down

0 comments on commit a3802c4

Please sign in to comment.