fix double space
Some checks failed
Lint / pnpm_install (pull_request) Successful in 35s
Test (frontend) / vitest (22.x) (pull_request) Successful in 1m18s
Test (production install and build) / production (22.x) (pull_request) Successful in 1m4s
Lint / lint (backend) (pull_request) Successful in 1m3s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 1m26s
Lint / lint (misskey-js) (pull_request) Successful in 35s
Lint / lint (sw) (pull_request) Successful in 31s
Lint / typecheck (misskey-js) (pull_request) Successful in 34s
Lint / lint (frontend) (pull_request) Successful in 7m51s
Lint / typecheck (backend) (pull_request) Failing after 47s
Test (backend) / unit (22.x) (pull_request) Successful in 2m26s
Test (backend) / e2e (22.x) (pull_request) Failing after 6m10s

This commit is contained in:
Leah 2025-02-05 17:25:46 +01:00
parent 9d6773c55d
commit 80d1cc174c

View file

@ -7,7 +7,7 @@
export function isUserRelated(note: any, ids: Set<string>): boolean {
if (ids.has(note.userId)) return true; // note author is muted
if (note.mentions && note.mentions.some((user: string) => ids.has(user))) return true; // any of mentioned users are muted
if (note.reply && isUserRelated(note.reply, ids)) return true; // also check reply target
if (note.reply && isUserRelated(note.reply, ids)) return true; // also check reply target
if (note.renote && isUserRelated(note.renote, ids)) return true; // also check renote target
return false;