mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 23:17:33 -07:00
16 lines
346 B
TypeScript
16 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;
|
||
|
}
|