Skip to content

Commit

Permalink
Fix: #666 絵文字リアクション機能に対応していないと思われるサーバーの投稿を詳細画面で開いた時、「n reactions」の表示を…
Browse files Browse the repository at this point in the history
…隠す (#692)
  • Loading branch information
kmycode authored Apr 4, 2024
1 parent 07c6d89 commit 8007c5d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ class DetailedStatus extends ImmutablePureComponent {
}

let emojiReactionsBar = null;
const emojiReactionAvailableServer = !isHideItem('emoji_reaction_unavailable_server') || status.getIn(['account', 'emoji_reaction_available_server']);
if (status.get('emoji_reactions')) {
const emojiReactions = status.get('emoji_reactions');
const emojiReactionAvailableServer = !isHideItem('emoji_reaction_unavailable_server') || status.getIn(['account', 'emoji_reaction_available_server']);
if (emojiReactions.size > 0 && enableEmojiReaction && emojiReactionAvailableServer) {
emojiReactionsBar = <StatusEmojiReactionsBar emojiReactions={emojiReactions} status={status} onEmojiReact={this.props.onEmojiReact} onUnEmojiReact={this.props.onUnEmojiReact} />;
}
Expand Down Expand Up @@ -279,7 +279,9 @@ class DetailedStatus extends ImmutablePureComponent {
);
}

if (this.props.history) {
if (!enableEmojiReaction || !emojiReactionAvailableServer) {
emojiReactionsLink = null;
} else if (this.props.history) {
emojiReactionsLink = (
<Link to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/emoji_reactions`} className='detailed-status__link'>
<span className='detailed-status__favorites'>
Expand Down

0 comments on commit 8007c5d

Please sign in to comment.