diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-23 00:48:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 00:48:43 +0200 |
commit | 0d2b60ab8b13a28e99a83e1104e7208de2025304 (patch) | |
tree | 25e5c8f6afee55b0039454152e6687ee59be36b9 /app | |
parent | 8c4b5f7cef60700af7ae64c7b524d899a1d033c5 (diff) |
Fix emoji search not showing custom emoji when none are uncategorized (#11920)
Fix #11903
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/emoji/emoji.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/emoji/emoji.js b/app/javascript/mastodon/features/emoji/emoji.js index 359bb7ffd..cd10e20b7 100644 --- a/app/javascript/mastodon/features/emoji/emoji.js +++ b/app/javascript/mastodon/features/emoji/emoji.js @@ -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'])); |