From dcf11a14d8363c79ab62aefca46834d6daa615ab Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 6 Dec 2016 10:22:45 -0500 Subject: [PATCH] Don't show status for posts from webhooks (#4726) --- webapp/components/post_view/components/post.jsx | 7 ++++++- webapp/components/rhs_comment.jsx | 9 +++++++-- webapp/components/rhs_root_post.jsx | 7 ++++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx index 58ea947b27..051ce07447 100644 --- a/webapp/components/post_view/components/post.jsx +++ b/webapp/components/post_view/components/post.jsx @@ -184,10 +184,15 @@ export default class Post extends React.Component { rootUser = ''; } + let status = this.props.status; + if (post.props && post.props.from_webhook === 'true') { + status = null; + } + let profilePic = ( ); diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index f4cc0d8e5e..bb04480ed6 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -264,10 +264,15 @@ export default class RhsComment extends React.Component { ); } + let status = this.props.status; + if (post.props && post.props.from_webhook === 'true') { + status = null; + } + let profilePic = ( ); diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 1e6ed4ff5b..6f43729732 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -274,10 +274,15 @@ export default class RhsRootPost extends React.Component { ); } + let status = this.props.status; + if (post.props && post.props.from_webhook === 'true') { + status = null; + } + let profilePic = (