blob: c818115a3c589da733038e7bd443abacb131def6 (
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.indexOf(note.userId) != -1) {
return true;
}
if (note.reply != null && mutedUserIds.indexOf(note.reply.userId) != -1) {
return true;
}
if (note.renote != null && mutedUserIds.indexOf(note.renote.userId) != -1) {
return true;
}
return false;
}
|