From 797736573d101b78764d91273b025f6db9d92dd6 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 30 Jun 2024 17:07:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9D=A1=E4=BB=B6=E3=81=8C=E9=80=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NoteCreateService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 92d6b9d49c99..486344d588ea 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -386,12 +386,12 @@ export class NoteCreateService implements OnApplicationShutdown { const allowedIds = new Set(meta.nirilaAllowedUnfamiliarRemoteUserIds); for (const targetUserIds1 of targetUserIds) { for (const targetUserId of targetUserIds1) { - if (allowedIds.has(targetUserId)) { - return true; + if (!allowedIds.has(targetUserId)) { + return false; } } } - return false; + return true; }; if (meta.nirilaBlockMentionsFromUnfamiliarRemoteUsers && user.host !== null && willCauseNotification && !isAllowedToCreateNotification()) {