meave
26.Март.2026 14:55:25
1
Привет, друзья,
Если я пытаюсь вставить его, введя :champagne, он не находится, однако, если я ввожу :cork, он отображается корректно, и если я наведу на него курсор мыши, он явно помечен как … шампанское !!
На этом всё.
Спасибо.
6 лайков
Falco
(Falco)
26.Март.2026 15:03:23
2
Похоже, нам нужно удалить строку по адресу
"x_ray" => ["xray"],
"right_anger_bubble" => ["anger_right"],
"man_bouncing_ball" => %w[basketball_man],
"person_bouncing_ball" => %w[person_with_ball basketball_player],
"bellhop_bell" => ["bellhop"],
"biohazard" => ["biohazard_sign"],
"bow_and_arrow" => ["archery"],
"spiral_calendar" => %w[calendar_spiral spiral_calendar_pad],
"card_file_box" => ["card_box"],
"cityscape_at_dusk" => %w[city_sunset city_dusk],
"couch_and_lamp" => ["couch"],
"crayon" => ["lower_left_crayon"],
"cricket_game" => %w[cricket_bat_and_ball cricket_bat_ball],
"latin_cross" => ["cross"],
"dagger" => ["dagger_knife"],
"desktop_computer" => ["desktop"],
"card_index_dividers" => ["dividers"],
"dove" => ["dove_of_peace"],
"footprints" => ["feet"],
"fire" => ["flame"],
"black_flag" => %w[flag_black waving_black_flag],
так как обратная ссылка уже есть, а настоящего эмодзи с названием champagne не существует.
Что думаешь, @j.jaffeux ?
5 лайков
Добавлен этап валидации, чтобы быть на 100% уверенными, что мы не добавляем алиасы к несуществующим эмодзи
main ← fix/remove-phantom-emoji-aliases
merged 11:33PM - 27 Mar 26 UTC
Some EMOJI_ALIASES keys (e.g. "champagne", "cheese", "hotdog") are not real emoj… i names — they don't exist in emojis.json and have no corresponding image files. Each of these keys already appears as an alias value for the actual emoji elsewhere in the hash (e.g. "bottle_with_popping_cork" => ["champagne"]), making the phantom entries redundant. Their presence causes the emoji picker to register names that can't resolve to an image, so typing `:champagne:` fails even though `:cork:` works fine.
This removes all 14 phantom entries and adds a validation step to the `emojis:db` rake task that aborts generation if any phantom alias keys are detected in the future.
https://meta.discourse.org/t/399338
3 лайка
j.jaffeux
(Joffrey Jaffeux)
Закрыл(а) тему
31.Март.2026 12:10:06
4
Эта тема была автоматически закрыта через 2 дня после последнего ответа. Новые ответы больше не принимаются.