mirror of
https://github.com/flarum/core.git
synced 2025-07-09 11:03:06 +02:00
Only add initial posts to the post stream if they have content
This commit is contained in:
@ -65,7 +65,7 @@ export default class DiscussionPage extends Component {
|
|||||||
|
|
||||||
var includedPosts = [];
|
var includedPosts = [];
|
||||||
discussion.payload.included && discussion.payload.included.forEach(record => {
|
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);
|
includedPosts.push(record.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user