Don't show status for posts from webhooks (#4726)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4df1ad2b28
Коммит
dcf11a14d8
@@ -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}
|
||||
|
||||
Ссылка в новой задаче
Block a user