]> cat aescling's git repositories - mastodon.git/commitdiff
Fix emoji search not showing custom emoji when none are uncategorized (#11920)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 22 Sep 2019 22:48:43 +0000 (00:48 +0200)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2019 22:48:43 +0000 (00:48 +0200)
Fix #11903

app/javascript/mastodon/features/emoji/emoji.js

index 359bb7ffd44700b28eb21682eff00d57beda8dcc..cd10e20b7ea8f00117813682c24ba4e06702d1a3 100644 (file)
@@ -99,4 +99,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']));