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