diff --git a/packages/client/src/components/MkAutocomplete.vue b/packages/client/src/components/MkAutocomplete.vue index 8c3cd78db0..37207a14f7 100644 --- a/packages/client/src/components/MkAutocomplete.vue +++ b/packages/client/src/components/MkAutocomplete.vue @@ -99,7 +99,7 @@ import { acct } from "@/filters/user"; import * as os from "@/os"; import { MFM_TAGS } from "@/scripts/mfm-tags"; import { defaultStore } from "@/store"; -import { emojilist } from "@/scripts/emojilist"; +import { emojilist, addSkinTone } from "@/scripts/emojilist"; import { instance } from "@/instance"; import { i18n } from "@/i18n"; @@ -113,6 +113,12 @@ type EmojiDef = { const lib = emojilist.filter((x) => x.category !== "flags"); +for (const emoji of lib) { + if (emoji.skin_tone_support) { + emoji.emoji = addSkinTone(emoji.emoji); + } +} + const emjdb: EmojiDef[] = lib.map((x) => ({ emoji: x.emoji, name: x.slug, diff --git a/packages/client/src/components/MkEmojiPicker.section.vue b/packages/client/src/components/MkEmojiPicker.section.vue index 12e869e04c..cf5307dfde 100644 --- a/packages/client/src/components/MkEmojiPicker.section.vue +++ b/packages/client/src/components/MkEmojiPicker.section.vue @@ -1,20 +1,31 @@