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

Updated serialisation to use current attributes

no-issue

We were getting some funny behaviour before this because some previous
attributes were just the defaults, when a post was new
This commit is contained in:
Fabien O'Carroll 2019-11-05 12:30:30 +07:00
parent 84300747a9
commit d1812281f7

View file

@ -19,7 +19,7 @@ const sendEmail = async (post) => {
// 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 serialize = async (model) => {
const frame = {options: {previous: true, context: {user: true}}};
const frame = {options: {context: {user: true}}};
const apiVersion = model.get('api_version') || 'v3';
const docName = 'posts';