diff --git a/js/src/forum/components/PostPreview.js b/js/src/forum/components/PostPreview.js index 14b51fccf..f13715dcc 100644 --- a/js/src/forum/components/PostPreview.js +++ b/js/src/forum/components/PostPreview.js @@ -16,7 +16,8 @@ export default class PostPreview extends Component { view() { const post = this.attrs.post; const user = post.user(); - const excerpt = highlight(post.contentPlain(), this.attrs.highlight, 300); + const content = post.contentType() === 'comment' && post.contentPlain(); + const excerpt = content ? highlight(content, this.attrs.highlight, 300) : ''; return (