summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post.jsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx
index 7eeffb039..6a5994469 100644
--- a/webapp/components/post_view/components/post.jsx
+++ b/webapp/components/post_view/components/post.jsx
@@ -199,6 +199,16 @@ export default class Post extends React.Component {
/>
);
+ if (this.props.compactDisplay) {
+ profilePic = (
+ <ProfilePicture
+ src=''
+ status={this.props.status}
+ user={this.props.user}
+ />
+ );
+ }
+
if (PostUtils.isSystemMessage(post)) {
profilePic = (
<span
@@ -214,10 +224,9 @@ export default class Post extends React.Component {
}
let compactClass = '';
- let profilePicContainer = (<div className='post__img'>{profilePic}</div>);
+ const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
- profilePicContainer = '';
}
let dropdownOpenedClass = '';