fix(backend): visibleUserIds was not considered for mute

This commit is contained in:
Sayamame-beans 2024-06-23 12:15:44 +00:00
parent 959aba6b13
commit b8a4a33695
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ export function isUserRelated(note: any, userIds: Set<string>, ignoreAuthor = fa
return true;
}
if (note.visibleUserIds != null && note.visibleUserIds.filter(userId => userId !== note.userId && userIds.has(userId)).length > 0) {
return true;
}
if (note.reply != null && note.reply.userId !== note.userId && userIds.has(note.reply.userId)) {
return true;
}