fix nullability

This commit is contained in:
Kisaragi 2025-03-06 20:59:36 +09:00 committed by GitHub
parent b8fde212ad
commit ea9c3239e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,5 +7,5 @@ import { MiUser } from '@/models/User.js';
import { MiNote } from '@/models/Note.js';
export function isReply(note: MiNote, viewerId?: MiUser['id'] | undefined | null): boolean {
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
return note.replyId !== undefined && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
}