summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/post_body/post_body.jsx2
-rw-r--r--webapp/components/post_view/post_body_additional_content.jsx2
-rw-r--r--webapp/components/post_view/post_list.jsx1
3 files changed, 2 insertions, 3 deletions
diff --git a/webapp/components/post_view/post_body/post_body.jsx b/webapp/components/post_view/post_body/post_body.jsx
index 044b46c55..4c0e00c47 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 bf8380912..107c75778 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 (
<PostAttachmentOpenGraph
link={link}
diff --git a/webapp/components/post_view/post_list.jsx b/webapp/components/post_view/post_list.jsx
index ee0fcb99b..a0aed8152 100644
--- a/webapp/components/post_view/post_list.jsx
+++ b/webapp/components/post_view/post_list.jsx
@@ -297,7 +297,6 @@ export default class PostList extends React.PureComponent {
}
handleScroll = () => {
- this.hasScrolledToFocusedPost = true;
this.hasScrolled = true;
this.previousScrollTop = this.refs.postlist.scrollTop;