]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix emoji search not showing custom emoji when none are uncategorized
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 22 Sep 2019 22:48:43 +0000 (00:48 +0200)
committerThibaut Girka <thib@sitedethib.com>
Mon, 30 Sep 2019 13:58:29 +0000 (15:58 +0200)
Port 0d2b60ab8b13a28e99a83e1104e7208de2025304 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/util/emoji/index.js

index b2d13cc959a5ecb2b53004948698a2e247e9d915..e1a244127d36e2526a42e079cc5703ec9b7e6c42 100644 (file)
@@ -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']));