mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 04:33:09 +02:00
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
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;
|
|
}
|