mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
Only add initial posts to the post stream if they have content
This commit is contained in:
parent
5115b6fb09
commit
bdf07aee50
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user