rename and comment

This commit is contained in:
Namekuji 2023-04-30 07:58:03 -04:00
parent ce60660128
commit ada759a9e5
2 changed files with 2 additions and 2 deletions

View file

@ -32,6 +32,6 @@ export async function shouldSilenceInstance(
): Promise<boolean> {
const { silencedHosts } = meta ?? (await fetchMeta());
return silencedHosts.some(
(limitedHost) => host === limitedHost || host.endsWith(`.${limitedHost}`),
(silencedHost) => host === silencedHost || host.endsWith(`.${silencedHost}`),
);
}

View file

@ -207,7 +207,7 @@ new Promise<Note>(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";
}