diff --git a/webapp/components/post_view/post_body/post_body.jsx b/webapp/components/post_view/post_body/post_body.jsx index 044b46c55b..4c0e00c470 100644 --- a/webapp/components/post_view/post_body/post_body.jsx +++ b/webapp/components/post_view/post_body/post_body.jsx @@ -70,7 +70,7 @@ export default class PostBody extends React.PureComponent { let comment = ''; let postClass = ''; - if (parentPost && this.props.parentPostUser) { + if (parentPost) { const profile = this.props.parentPostUser; let apostrophe = ''; diff --git a/webapp/components/post_view/post_body_additional_content.jsx b/webapp/components/post_view/post_body_additional_content.jsx index bf83809127..107c757787 100644 --- a/webapp/components/post_view/post_body_additional_content.jsx +++ b/webapp/components/post_view/post_body_additional_content.jsx @@ -153,7 +153,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent { } const link = Utils.extractFirstLink(this.props.post.message); - if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW)) { + if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW) && global.window.mm_config.EnableLinkPreviews === 'true') { return ( { - this.hasScrolledToFocusedPost = true; this.hasScrolled = true; this.previousScrollTop = this.refs.postlist.scrollTop;