mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:23:08 +02:00
0e4a111f81
Resolve #7779
15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
export function isBlockerUserRelated(note: any, blockerUserIds: Set<string>): boolean {
|
|
if (blockerUserIds.has(note.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.reply != null && blockerUserIds.has(note.reply.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.renote != null && blockerUserIds.has(note.renote.userId)) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|