Add config options for overriding username and icon, and add BOT indicator next to webhook posts.

Этот коммит содержится в:
JoramWilander
2015-10-05 08:46:23 -04:00
родитель 11903a3834
Коммит 2a23d90ca6
11 изменённых файлов: 119 добавлений и 17 удалений

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

@@ -520,13 +520,13 @@ export default class PostList extends React.Component {
// the previous post was made by the same user as the current post,
// the previous post is not a comment,
// the current post is not a comment,
// the current profile pic is not overridden
// and the previous profile pic is not overridden
// the current post is not from a webhook
// and the previous post is not from a webhook
if ((prevPost.user_id === post.user_id) &&
!utils.isComment(prevPost) &&
!utils.isComment(post) &&
(!post.props || !post.props.override_icon_url) &&
(!prevPost.props || !prevPost.props.override_icon_url)) {
(!post.props || !post.props.from_webhook) &&
(!prevPost.props || !prevPost.props.from_webhook)) {
hideProfilePic = true;
}
}