mirror of
https://github.com/sim1222/misskey.git
synced 2025-05-03 20:57:20 +09:00
fix: 3
This commit is contained in:
parent
b604ef1623
commit
a29ee6d294
@ -103,16 +103,17 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string, n
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log(name);
|
console.log(name);
|
||||||
if (duplication) {
|
console.log(duplication);
|
||||||
|
if (await duplication) {
|
||||||
os.api('notes/reactions/create', {
|
os.api('notes/reactions/create', {
|
||||||
noteId: noteId,
|
noteId: noteId,
|
||||||
reaction: name,
|
reaction: `:${name}:`,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await importEmoji(true).then(() => {
|
await importEmoji(true).then(() => {
|
||||||
os.api('notes/reactions/create', {
|
os.api('notes/reactions/create', {
|
||||||
noteId: noteId,
|
noteId: noteId,
|
||||||
reaction: name,
|
reaction: `:${name}:`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user