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