Don't show status for posts from webhooks (#4726)

Этот коммит содержится в:
Joram Wilander
2016-12-06 10:22:45 -05:00
коммит произвёл GitHub
родитель 4df1ad2b28
Коммит dcf11a14d8
3 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@@ -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}
/>
);

Просмотреть файл

@@ -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 = (
<ProfilePicture
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
status={this.props.status}
status={status}
width='36'
height='36'
user={this.props.user}
@@ -281,7 +286,7 @@ export default class RhsComment extends React.Component {
profilePic = (
<ProfilePicture
src=''
status={this.props.status}
status={status}
user={this.props.user}
/>
);

Просмотреть файл

@@ -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 = (
<ProfilePicture
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
status={this.props.status}
status={status}
width='36'
height='36'
user={this.props.user}