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