diff options
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/components/post.jsx | 1 | ||||
-rw-r--r-- | webapp/components/post_view/components/post_header.jsx | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx index 0bf4680fe..2ed062c74 100644 --- a/webapp/components/post_view/components/post.jsx +++ b/webapp/components/post_view/components/post.jsx @@ -182,6 +182,7 @@ export default class Post extends React.Component { user={this.props.user} currentUser={this.props.currentUser} compactDisplay={this.props.compactDisplay} + displayNameType={this.props.displayNameType} /> <PostBody post={post} diff --git a/webapp/components/post_view/components/post_header.jsx b/webapp/components/post_view/components/post_header.jsx index 3e7650d7f..b79b732bc 100644 --- a/webapp/components/post_view/components/post_header.jsx +++ b/webapp/components/post_view/components/post_header.jsx @@ -19,7 +19,12 @@ export default class PostHeader extends React.Component { render() { const post = this.props.post; - let userProfile = <UserProfile user={this.props.user}/>; + let userProfile = ( + <UserProfile + user={this.props.user} + displayNameType={this.props.displayNameType} + /> + ); let botIndicator; if (post.props && post.props.from_webhook) { @@ -80,5 +85,6 @@ PostHeader.propTypes = { isLastComment: React.PropTypes.bool.isRequired, handleCommentClick: React.PropTypes.func.isRequired, sameUser: React.PropTypes.bool.isRequired, - compactDisplay: React.PropTypes.bool + compactDisplay: React.PropTypes.bool, + displayNameType: React.PropTypes.string }; |