diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-23 00:48:43 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-09-30 15:58:29 +0200 |
commit | 4b7c436ae9f2d8bcd274252a41c195f44da5ee26 (patch) | |
tree | 5f1344e9d0493c0c5e2522680ea666dedd37296d /app/javascript | |
parent | 5c9ba9177a87d007135b63f79ded4329c49083e2 (diff) |
[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>
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/util/emoji/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/emoji/index.js b/app/javascript/flavours/glitch/util/emoji/index.js index b2d13cc95..e1a244127 100644 --- a/app/javascript/flavours/glitch/util/emoji/index.js +++ b/app/javascript/flavours/glitch/util/emoji/index.js @@ -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'])); |