diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-07 19:21:17 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-07 19:21:17 +0900 |
| commit | 3e45e6c1655cbb88f6c53e938f52ffcd00263050 (patch) | |
| tree | eafb6aab724719a0961f5e198496e9251ccaa387 /src/remote/activitypub | |
| parent | user page :art: (diff) | |
| download | sharkey-3e45e6c1655cbb88f6c53e938f52ffcd00263050.tar.gz sharkey-3e45e6c1655cbb88f6c53e938f52ffcd00263050.tar.bz2 sharkey-3e45e6c1655cbb88f6c53e938f52ffcd00263050.zip | |
Clean up
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 9 |
1 files changed, 0 insertions, 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 => { |