From 3e45e6c1655cbb88f6c53e938f52ffcd00263050 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 7 Aug 2021 19:21:17 +0900 Subject: [PATCH] Clean up --- src/remote/activitypub/models/note.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 3b7452c3cb..6621ae3492 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -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 => {