draftを抹消

Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
mattyatea 2023-10-24 17:04:18 +09:00
parent 8fd5eb7010
commit cd00655ae4
No known key found for this signature in database
GPG key ID: 068E54E2C33BEF9A
2 changed files with 1 additions and 5 deletions

View file

@ -96,10 +96,6 @@ const emojiDb = computed(() => {
const customEmojiDB: EmojiDef[] = [];
for (const x of customEmojis.value) {
if (x.draft) {
continue;
}
customEmojiDB.push({
name: x.name,
emoji: `:${x.name}:`,

View file

@ -157,7 +157,7 @@ watch(q, () => {
const searchCustom = () => {
const max = 100;
const emojis = customEmojis.value.filter(emoji => !emoji.draft);
const emojis = customEmojis.value;
const matches = new Set<Misskey.entities.CustomEmoji>();
const exactMatch = emojis.find(emoji => emoji.name === newQ);