From bdf07aee500379928df5a2d0fc0db239567d82b3 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:14:56 +0930 Subject: [PATCH] Only add initial posts to the post stream if they have content --- framework/core/js/forum/src/components/discussion-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/discussion-page.js b/framework/core/js/forum/src/components/discussion-page.js index da9643108..5fdcccdf3 100644 --- a/framework/core/js/forum/src/components/discussion-page.js +++ b/framework/core/js/forum/src/components/discussion-page.js @@ -65,7 +65,7 @@ export default class DiscussionPage extends Component { var includedPosts = []; discussion.payload.included && discussion.payload.included.forEach(record => { - if (record.type === 'posts') { + if (record.type === 'posts' && (record.contentType !== 'comment' || record.contentHtml)) { includedPosts.push(record.id); } });