fix: expiredafter time on poll

This commit is contained in:
Mar0xy 2023-09-26 01:52:11 +02:00
parent 96580967fb
commit 1d3fd4c604
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -1086,7 +1086,7 @@ export default class Misskey implements MegalodonInterface {
let pollParam = { let pollParam = {
choices: options.poll.options, choices: options.poll.options,
expiresAt: null, expiresAt: null,
expiredAfter: parseInt(options.poll.expires_in.toString()) expiredAfter: options.poll.expires_in * 1000
} }
if (options.poll.multiple !== undefined) { if (options.poll.multiple !== undefined) {
pollParam = Object.assign(pollParam, { pollParam = Object.assign(pollParam, {