mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
16 lines
305 B
TypeScript
16 lines
305 B
TypeScript
export function isUserRelated(note: any, userIds: Set<string>): boolean {
|
|
if (userIds.has(note.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.reply != null && userIds.has(note.reply.userId)) {
|
|
return true;
|
|
}
|
|
|
|
if (note.renote != null && userIds.has(note.renote.userId)) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|