Update is-user-related.ts

This commit is contained in:
anatawa12 2025-05-10 01:43:53 +09:00 committed by GitHub
parent 36b9314cea
commit 4830eb9f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ interface NoteLike {
renoteUserId?: MiUser['id'] | null; renoteUserId?: MiUser['id'] | null;
} }
export function isUserRelated(note: NoteLike | null, userIds: Set<string>, ignoreAuthor = false): boolean { export function isUserRelated(note: NoteLike | null | undefined, userIds: Set<string>, ignoreAuthor = false): boolean {
if (!note) { if (!note) {
return false; return false;
} }