1
0
mirror of https://github.com/flarum/core.git synced 2025-05-10 17:35:25 +02:00

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 4baac3fab1
commit aa765e3119

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