From 233c39dbad589207607c03e998da517e010eebf5 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 27 Jul 2022 08:12:15 +0200 Subject: [PATCH] fix lints --- packages/backend/src/misc/is-user-related.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/misc/is-user-related.ts b/packages/backend/src/misc/is-user-related.ts index a1811c3ce..dc7bfbf0a 100644 --- a/packages/backend/src/misc/is-user-related.ts +++ b/packages/backend/src/misc/is-user-related.ts @@ -1,7 +1,7 @@ export function isUserRelated(note: any, ids: Set): 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.renote && isUserRelated(note.renote, ids)) return true; // also check renote target + 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.renote && isUserRelated(note.renote, ids)) return true; // also check renote target return false; }