2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fixed canary api for page/type column

no-issue

Canary didn't have all of the post/type changes copied across
This commit is contained in:
Fabien O'Carroll 2019-08-13 10:31:49 +08:00
parent f7b323e223
commit a5a7e7e919

View file

@ -35,6 +35,10 @@ const mapPost = (model, frame) => {
url.forPost(model.id, jsonModel, frame);
if (utils.isContentAPI(frame)) {
// Content api v2 still expects page prop
if (jsonModel.type === 'page') {
jsonModel.page = true;
}
date.forPost(jsonModel);
members.forPost(jsonModel, frame);
}