0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Reverted page and status not being returned from Content API v2

refs https://github.com/TryGhost/Ghost/issues/10335

- temporary till Monday!!
This commit is contained in:
kirrg001 2019-01-04 20:05:50 +01:00
parent a46545f8ab
commit a8dc29e794
3 changed files with 12 additions and 7 deletions

View file

@ -30,8 +30,10 @@ const post = (attrs) => {
// Extra properties removed from v2
delete attrs.locale;
delete attrs.author;
delete attrs.page;
delete attrs.status;
// @TODO: https://github.com/TryGhost/Ghost/issues/10335
// delete attrs.page;
// delete attrs.status;
return attrs;
};

View file

@ -14,8 +14,9 @@ module.exports = [
'mobiledoc',
'html',
'plaintext',
'page',
'status',
// @TODO: https://github.com/TryGhost/Ghost/issues/10335
// 'page',
// 'status',
'amp',
'codeinjection_head',
'codeinjection_foot',
@ -57,8 +58,9 @@ module.exports = [
'mobiledoc',
'html',
'plaintext',
'page',
'status',
// @TODO: https://github.com/TryGhost/Ghost/issues/10335
// 'page',
// 'status',
'amp',
'codeinjection_head',
'codeinjection_foot',

View file

@ -22,7 +22,8 @@ const expectedProperties = {
// v2 API doesn't return unused fields
.without('locale')
// These fields aren't useful as they always have known values
.without('page', 'status')
// @TODO: https://github.com/TryGhost/Ghost/issues/10335
// .without('page', 'status')
// v2 returns a calculated excerpt field
.concat('excerpt')
,