Only add initial posts to the post stream if they have content

This commit is contained in:
Toby Zerner 2015-05-14 22:14:56 +09:30
parent 5115b6fb09
commit bdf07aee50

View File

@ -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);
}
});