mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
fix lints
This commit is contained in:
parent
7459dc0819
commit
dc793c86f8
@ -1,7 +1,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.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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user