mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05: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
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ const mapPost = (model, frame) => {
|
||||||
url.forPost(model.id, jsonModel, frame);
|
url.forPost(model.id, jsonModel, frame);
|
||||||
|
|
||||||
if (utils.isContentAPI(frame)) {
|
if (utils.isContentAPI(frame)) {
|
||||||
|
// Content api v2 still expects page prop
|
||||||
|
if (jsonModel.type === 'page') {
|
||||||
|
jsonModel.page = true;
|
||||||
|
}
|
||||||
date.forPost(jsonModel);
|
date.forPost(jsonModel);
|
||||||
members.forPost(jsonModel, frame);
|
members.forPost(jsonModel, frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue