Don't show status for posts from webhooks (#4726)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4df1ad2b28
Коммит
dcf11a14d8
@@ -184,10 +184,15 @@ export default class Post extends React.Component {
|
|||||||
rootUser = '';
|
rootUser = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let status = this.props.status;
|
||||||
|
if (post.props && post.props.from_webhook === 'true') {
|
||||||
|
status = null;
|
||||||
|
}
|
||||||
|
|
||||||
let profilePic = (
|
let profilePic = (
|
||||||
<ProfilePicture
|
<ProfilePicture
|
||||||
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
||||||
status={this.props.status}
|
status={status}
|
||||||
user={this.props.user}
|
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 = (
|
let profilePic = (
|
||||||
<ProfilePicture
|
<ProfilePicture
|
||||||
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
||||||
status={this.props.status}
|
status={status}
|
||||||
width='36'
|
width='36'
|
||||||
height='36'
|
height='36'
|
||||||
user={this.props.user}
|
user={this.props.user}
|
||||||
@@ -281,7 +286,7 @@ export default class RhsComment extends React.Component {
|
|||||||
profilePic = (
|
profilePic = (
|
||||||
<ProfilePicture
|
<ProfilePicture
|
||||||
src=''
|
src=''
|
||||||
status={this.props.status}
|
status={status}
|
||||||
user={this.props.user}
|
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 = (
|
let profilePic = (
|
||||||
<ProfilePicture
|
<ProfilePicture
|
||||||
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
|
||||||
status={this.props.status}
|
status={status}
|
||||||
width='36'
|
width='36'
|
||||||
height='36'
|
height='36'
|
||||||
user={this.props.user}
|
user={this.props.user}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user