mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-18 16:11:42 +01:00
[Glitch] Fix emoji search not showing custom emoji when none are uncategorized
Port 0d2b60ab8b13a28e99a83e1104e7208de2025304 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
5c9ba9177a
commit
4b7c436ae9
@ -100,4 +100,4 @@ export const buildCustomEmojis = (customEmojis) => {
|
||||
return emojis;
|
||||
};
|
||||
|
||||
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set());
|
||||
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set(['custom']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user