mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Support filter params in discussion list state
https://github.com/flarum/core/pull/3068 accidentially broke the user discussions page, as up until this commit, `DiscussionListState`didn't accept any filter params.
This commit is contained in:
parent
b5faef9a89
commit
0fd04cc330
|
@ -14,7 +14,7 @@ export default class DiscussionListState extends PaginatedListState<Discussion>
|
||||||
}
|
}
|
||||||
|
|
||||||
requestParams() {
|
requestParams() {
|
||||||
const params: any = { include: ['user', 'lastPostedUser'], filter: {} };
|
const params: any = { include: ['user', 'lastPostedUser'], filter: this.params.filter || {} };
|
||||||
|
|
||||||
params.sort = this.sortMap()[this.params.sort];
|
params.sort = this.sortMap()[this.params.sort];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user