1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-03 01:09:06 +09:00
This commit is contained in:
mei23 2019-01-21 04:13:47 +09:00
parent 1ddad0d440
commit 20f0c1008b

View File

@ -114,6 +114,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false
// vote
if (reply && reply.poll && text != null && text.match(/^[0-9]$/)) {
log(`vote from AP: actor=${actor.username}@${actor.host}, note=${note.id}, choice=${text}`);
await vote(actor, reply, Number(text));
return null;
}