mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 13:30:47 +08:00
Make discussion list includes extensible
This commit is contained in:
parent
fe81f71d73
commit
2820b76c9b
|
@ -25,7 +25,7 @@ export default class DiscussionList extends Component {
|
|||
}
|
||||
|
||||
params() {
|
||||
var params = {};
|
||||
var params = {include: ['startUser', 'lastUser']};
|
||||
for (var i in this.props.params) {
|
||||
params[i] = this.props.params[i];
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ export default class DiscussionList extends Component {
|
|||
loadResults(offset) {
|
||||
var params = this.params();
|
||||
params.page = {offset};
|
||||
params.include = params.include.join(',');
|
||||
return app.store.find('discussions', params);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user