This commit is contained in:
mei23 2019-01-21 04:13:47 +09:00
parent 1ddad0d440
commit 20f0c1008b
1 changed files with 1 additions and 0 deletions

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;
}