diff --git a/app/gabsocial/features/status/components/status_interaction_bar.js b/app/gabsocial/features/status/components/status_interaction_bar.js index c250f57d1..6859601e4 100644 --- a/app/gabsocial/features/status/components/status_interaction_bar.js +++ b/app/gabsocial/features/status/components/status_interaction_bar.js @@ -19,7 +19,7 @@ export class StatusInteractionBar extends React.Component { } sortEmoji = emojiReacts => ( - emojiReacts // TODO: Sort + emojiReacts // TODO: Sort by count ); mergeEmoji = emojiReacts => ( @@ -34,13 +34,24 @@ export class StatusInteractionBar extends React.Component { render() { const { status } = this.props; const emojiReacts = status.getIn(['pleroma', 'emoji_reactions']); + const likeCount = status.get('favourites_count'); return ( <> + {likeCount > 0 && + + {likeCount} + } {this.filterEmoji(emojiReacts).map(e => ( - - {e.get('count')} + + {e.get('count')} ))}