From 3d2b495829be7f3b841ad5c8979f8f8e1f778052 Mon Sep 17 00:00:00 2001 From: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:48:13 +0900 Subject: [PATCH] Revert "fix(backend): visibleUserIds was not considered for mute" This reverts commit b8a4a336951dcda9aee1a73f019a788ebe3d0040. --- packages/backend/src/misc/is-user-related.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/misc/is-user-related.ts b/packages/backend/src/misc/is-user-related.ts index a15e7b5f1f..1604fd0419 100644 --- a/packages/backend/src/misc/is-user-related.ts +++ b/packages/backend/src/misc/is-user-related.ts @@ -12,10 +12,6 @@ export function isUserRelated(note: any, userIds: Set, 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; }