diff --git a/ghost/admin/app/adapters/page.js b/ghost/admin/app/adapters/page.js index 0500a9fffd..edf56450c4 100644 --- a/ghost/admin/app/adapters/page.js +++ b/ghost/admin/app/adapters/page.js @@ -22,4 +22,11 @@ export default class Page extends ApplicationAdapter { return url; } + + // posts and pages now include all relations by default so we don't want + // EmbeddedRelationAdapter.buildQuery adding an `?include=` param that + // overrides the defaults with a more restrictive list + buildQuery(store, modelName, options) { + return options; + } } diff --git a/ghost/admin/app/adapters/post.js b/ghost/admin/app/adapters/post.js index cafe897233..c6c744a563 100644 --- a/ghost/admin/app/adapters/post.js +++ b/ghost/admin/app/adapters/post.js @@ -1,7 +1,6 @@ import ApplicationAdapter from 'ghost-admin/adapters/application'; export default class Post extends ApplicationAdapter { - // posts and pages now include everything by default buildIncludeURL(store, modelName, id, snapshot, requestType, query) { const url = this.buildURL(modelName, id, snapshot, requestType, query); const parsedUrl = new URL(url); @@ -40,4 +39,11 @@ export default class Post extends ApplicationAdapter { return url; } + + // posts and pages now include all relations by default so we don't want + // EmbeddedRelationAdapter.buildQuery adding an `?include=` param that + // overrides the defaults with a more restrictive list + buildQuery(store, modelName, options) { + return options; + } }