From 074b37c759e20202b32e42faf62eec0e3e85064e Mon Sep 17 00:00:00 2001 From: noellabo Date: Fri, 10 Feb 2023 11:03:05 +0900 Subject: [PATCH] fixup! Change emoji reactions to be grouped by shortcode --- app/javascript/mastodon/reducers/statuses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/reducers/statuses.js b/app/javascript/mastodon/reducers/statuses.js index 2d3440b73..15949a090 100644 --- a/app/javascript/mastodon/reducers/statuses.js +++ b/app/javascript/mastodon/reducers/statuses.js @@ -62,7 +62,7 @@ const updateEmojiReactionCount = (state, emojiReaction) => updateEmojiReaction(s const addEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y + 1).update('account_ids', z => z.push(me))); -const removeEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y - 1).update('account_ids', z => z.filter(id => id != me))); +const removeEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y - 1).update('account_ids', z => z.filter(id => id !== me))); const initialState = ImmutableMap();