From 151b30c53d77d37db25d70eb025d3b7139be7d6d Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sun, 30 Apr 2023 07:58:03 -0400 Subject: [PATCH] rename and comment --- packages/backend/src/misc/should-block-instance.ts | 2 +- packages/backend/src/services/note/create.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/misc/should-block-instance.ts b/packages/backend/src/misc/should-block-instance.ts index 66b5832c70..47f9200d49 100644 --- a/packages/backend/src/misc/should-block-instance.ts +++ b/packages/backend/src/misc/should-block-instance.ts @@ -32,6 +32,6 @@ export async function shouldSilenceInstance( ): Promise { const { silencedHosts } = meta ?? (await fetchMeta()); return silencedHosts.some( - (limitedHost) => host === limitedHost || host.endsWith(`.${limitedHost}`), + (silencedHost) => host === silencedHost || host.endsWith(`.${silencedHost}`), ); } diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index 3bccf33f7f..bd3a0224a1 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -207,7 +207,7 @@ new Promise(async (res, rej) => { const inSilencedInstance = Users.isRemoteUser(user) && await shouldSilenceInstance(user.host); - // If the + // Enforce home visibility if the user is in a silenced instance. if (data.visibility === "public" && inSilencedInstance) { data.visibility = "home"; }