diff --git a/framework/core/js/forum/src/components/discussion-page.js b/framework/core/js/forum/src/components/discussion-page.js index 25235430a..30f3be46a 100644 --- a/framework/core/js/forum/src/components/discussion-page.js +++ b/framework/core/js/forum/src/components/discussion-page.js @@ -97,7 +97,7 @@ export default class DiscussionPage extends mixin(Component, evented) { includedPosts.push(app.store.getById('posts', record.id)); } }); - includedPosts.sort((a, b) => a.id() - b.id()); + includedPosts.sort((a, b) => a.id() - b.id()).splice(20); } this.stream = new PostStream({ discussion, includedPosts });