mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
parent
9c2bb3811f
commit
cfa0a0862b
@ -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 New Issue
Block a user