summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_comment.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r--webapp/components/rhs_comment.jsx14
1 files changed, 11 insertions, 3 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx
index c22e0c4dc..c8fd698b0 100644
--- a/webapp/components/rhs_comment.jsx
+++ b/webapp/components/rhs_comment.jsx
@@ -276,7 +276,7 @@ export default class RhsComment extends React.Component {
);
}
- const profilePic = (
+ let profilePic = (
<ProfilePicture
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
status={this.props.status}
@@ -287,12 +287,20 @@ export default class RhsComment extends React.Component {
);
let compactClass = '';
- let profilePicContainer = (<div className='post__img'>{profilePic}</div>);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
- profilePicContainer = '';
+
+ profilePic = (
+ <ProfilePicture
+ src=''
+ status={this.props.status}
+ user={this.props.user}
+ />
+ );
}
+ const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
+
let fileAttachment = null;
if (post.file_ids && post.file_ids.length > 0) {
fileAttachment = (