From a5f4e10f79bfcf651ab7bcc7d3ebcc0d4ff49aba Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 23:10:11 +0930 Subject: [PATCH] Make discussion list includes extensible --- framework/core/js/forum/src/components/discussion-list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/discussion-list.js b/framework/core/js/forum/src/components/discussion-list.js index baa912ede..84ff225e8 100644 --- a/framework/core/js/forum/src/components/discussion-list.js +++ b/framework/core/js/forum/src/components/discussion-list.js @@ -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); }