diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:14:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:14:32 +0900 |
| commit | d46eca4c87d20e3f5c441162b837472a27682690 (patch) | |
| tree | ff07fb9befcb89ff818205dd8ee75e19688c0fa8 /src/remote/activitypub | |
| parent | 11.0.0-beta.9 (diff) | |
| download | misskey-d46eca4c87d20e3f5c441162b837472a27682690.tar.gz misskey-d46eca4c87d20e3f5c441162b837472a27682690.tar.bz2 misskey-d46eca4c87d20e3f5c441162b837472a27682690.zip | |
Refactor
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 78f5005953..60d4cf37d7 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -154,7 +154,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false // vote if (reply && reply.hasPoll) { - const poll = await Polls.findOne({ noteId: reply.id }).then(ensure); + const poll = await Polls.findOne(reply.id).then(ensure); const tryCreateVote = async (name: string, index: number): Promise<null> => { if (poll.expiresAt && Date.now() > new Date(poll.expiresAt).getTime()) { |