Просмотр исходного кода

Fix emoji search not showing custom emoji when none are uncategorized (#11920)

Fix #11903
master^2
Eugen Rochko 4 лет назад
committed by GitHub
Родитель
Сommit
0d2b60ab8b
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      app/javascript/mastodon/features/emoji/emoji.js

+ 1
- 1
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']));

Загрузка…
Отмена
Сохранить