summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-06 10:22:45 -0500
committerGitHub <noreply@github.com>2016-12-06 10:22:45 -0500
commitdcf11a14d8363c79ab62aefca46834d6daa615ab (patch)
tree27db991b5c028da5392f1c22fb4528f9f24c4b17 /webapp/components/post_view
parent4df1ad2b28a660b1a0b96869701ffb0b9f0a6219 (diff)
downloadchat-dcf11a14d8363c79ab62aefca46834d6daa615ab.tar.gz
chat-dcf11a14d8363c79ab62aefca46834d6daa615ab.tar.bz2
chat-dcf11a14d8363c79ab62aefca46834d6daa615ab.zip
Don't show status for posts from webhooks (#4726)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx
index 58ea947b2..051ce0744 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 = (
<ProfilePicture
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
- status={this.props.status}
+ status={status}
user={this.props.user}
/>
);