Skip to content
Snippets Groups Projects
Commit 3e45e6c1 authored by syuilo's avatar syuilo
Browse files

Clean up

parent fe833493
No related branches found
No related tags found
No related merge requests found
......@@ -218,15 +218,6 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
if (note.name) {
return await tryCreateVote(note.name, poll.choices.findIndex(x => x === note.name));
}
// 後方互換性のため
if (text) {
const m = text.match(/(\d+)$/);
if (m) {
return await tryCreateVote(m[0], Number(m[1]));
}
}
}
const emojis = await extractEmojis(note.tag || [], actor.host).catch(e => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment