blob: 8f606a2943937522ad1e95964530d0a9d2f2de5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
export default function(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;
}
|