mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/general: rename _fields to fields
This commit is contained in:
@ -48,7 +48,7 @@ class PostsController {
|
||||
requestPage: page => {
|
||||
const text = this._decorateSearchQuery(ctx.searchQuery.text);
|
||||
return api.get(
|
||||
`/posts/?query=${text}&page=${page}&pageSize=40&_fields=` +
|
||||
`/posts/?query=${text}&page=${page}&pageSize=40&fields=` +
|
||||
`id,type,tags,score,favoriteCount,` +
|
||||
`commentCount,thumbnailUrl`);
|
||||
},
|
||||
@ -64,7 +64,7 @@ class PostsController {
|
||||
topNavController.activate('posts');
|
||||
Promise.all([
|
||||
api.get('/post/' + id),
|
||||
api.get(`/post/${id}/around?_fields=id&query=`
|
||||
api.get(`/post/${id}/around?fields=id&query=`
|
||||
+ this._decorateSearchQuery('')),
|
||||
]).then(responses => {
|
||||
const [postResponse, aroundResponse] = responses;
|
||||
|
Reference in New Issue
Block a user