mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Removed unnecessary '?status=all' query parameter (#1330)
no issue - The default post/user filter gets expanded to same values as for ALL_STATUSES in Ghost APIs model layer (https://github.com/TryGhost/Ghost/blob/e57e19e/core/server/api/canary/utils/serializers/input/posts.js#L97)
This commit is contained in:
parent
7e54f4802b
commit
3c2185a3bf
@ -161,7 +161,7 @@ export default Component.extend({
|
||||
_loadPosts() {
|
||||
let store = this.store;
|
||||
let postsUrl = `${store.adapterFor('post').urlForQuery({}, 'post')}/`;
|
||||
let postsQuery = {fields: 'id,title,page', limit: 'all', status: 'all'};
|
||||
let postsQuery = {fields: 'id,title,page', limit: 'all'};
|
||||
let content = this.content;
|
||||
|
||||
return this.ajax.request(postsUrl, {data: postsQuery}).then((posts) => {
|
||||
@ -178,7 +178,7 @@ export default Component.extend({
|
||||
_loadPages() {
|
||||
let store = this.store;
|
||||
let pagesUrl = `${store.adapterFor('page').urlForQuery({}, 'page')}/`;
|
||||
let pagesQuery = {fields: 'id,title,page', limit: 'all', status: 'all'};
|
||||
let pagesQuery = {fields: 'id,title,page', limit: 'all'};
|
||||
let content = this.content;
|
||||
|
||||
return this.ajax.request(pagesUrl, {data: pagesQuery}).then((pages) => {
|
||||
|
@ -24,8 +24,7 @@ export default AuthenticatedRoute.extend({
|
||||
}
|
||||
|
||||
let query = {
|
||||
id: post_id,
|
||||
status: 'all'
|
||||
id: post_id
|
||||
};
|
||||
|
||||
return this.store.query(modelName, query)
|
||||
|
Loading…
Reference in New Issue
Block a user