This commit is contained in:
Kisaragi 2025-05-12 21:30:57 +09:00 committed by GitHub
commit 312ec9d083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

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