mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 17:59:05 +01:00
aa36d6419f
* Resolve #6905 * Resolve #6905 * Resolve #6905
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
export function isMutedUserRelated(note: any, mutedUserIds: Set<string>): boolean {
|
|
if (mutedUserIds.has(note.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.reply != null && mutedUserIds.has(note.reply.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.renote != null && mutedUserIds.has(note.renote.userId)) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|