Update NoteCreateService.ts

This commit is contained in:
syuilo 2025-09-25 15:37:57 +09:00
parent 914eb0bd35
commit 1df36d5fc7
1 changed files with 2 additions and 2 deletions

View File

@ -352,8 +352,8 @@ export class NoteCreateService implements OnApplicationShutdown {
}
}
if (ps.poll) {
if (typeof ps.poll.expiresAt === 'number') {
if (data.poll) {
if (data.poll.expiresAt != null) {
if (ps.poll.expiresAt < Date.now()) {
throw new IdentifiableError('0c11c11e-0c8d-48e7-822c-76ccef660068', 'Poll expiration must be future time');
}