2021-01-30 03:09:46 +01:00
|
|
|
export function isMutedUserRelated(note: any, mutedUserIds: Set<string>): boolean {
|
|
|
|
if (mutedUserIds.has(note.userId)) {
|
2018-09-17 16:07:15 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-01-30 03:09:46 +01:00
|
|
|
if (note.reply != null && mutedUserIds.has(note.reply.userId)) {
|
2018-09-17 16:07:15 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-01-30 03:09:46 +01:00
|
|
|
if (note.renote != null && mutedUserIds.has(note.renote.userId)) {
|
2018-09-17 16:07:15 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|