From 2820b76c9bffd8205601955bb4384826dd0f9a7f 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 --- js/forum/src/components/discussion-list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/forum/src/components/discussion-list.js b/js/forum/src/components/discussion-list.js index baa912ede..84ff225e8 100644 --- a/js/forum/src/components/discussion-list.js +++ b/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); }