mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03: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:
parent
f7b323e223
commit
a5a7e7e919
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user