mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
rename and comment
This commit is contained in:
parent
ce60660128
commit
ada759a9e5
2 changed files with 2 additions and 2 deletions
|
@ -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}`),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue