blob: 6f074bcb90e9f8ff7a1e8c413aaa13096957e6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
export function isMutedUserRelated(note: any, mutedUserIds: string[]): boolean {
if (mutedUserIds.includes(note.userId)) {
return true;
}
if (note.reply != null && mutedUserIds.includes(note.reply.userId)) {
return true;
}
if (note.renote != null && mutedUserIds.includes(note.renote.userId)) {
return true;
}
return false;
}
|