[Glitch] Fix emoji search not showing custom emoji when none are uncategorized
Port 25c70115c1
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
parent
adc53b625e
commit
526d24423c
|
@ -100,4 +100,4 @@ export const buildCustomEmojis = (customEmojis) => {
|
||||||
return emojis;
|
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…
Reference in New Issue