fix lints
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
This commit is contained in:
parent
0f6d94f1e7
commit
233c39dbad
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue