From 6923ddc25d9e67aefc1797e27a219eb38f7a4a8e Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 18 Aug 2023 17:32:52 -0700 Subject: [PATCH] fix: use home instance --- src/routes/signup/[instance]/+page.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/routes/signup/[instance]/+page.svelte b/src/routes/signup/[instance]/+page.svelte index 63e6bdbd..814cc0db 100644 --- a/src/routes/signup/[instance]/+page.svelte +++ b/src/routes/signup/[instance]/+page.svelte @@ -22,6 +22,8 @@ export let data + const instance = $page.params.instance + let captchaRequired = data.site_view.local_site.captcha_enabled let email: string | undefined = '' @@ -37,7 +39,8 @@ submitting: boolean = false, honeypot: string | undefined = undefined - const getCaptcha = async () => (captcha = await getClient().getCaptcha()) + const getCaptcha = async () => + (captcha = await getClient(instance, fetch).getCaptcha()) $: captchaAudio = captcha?.ok?.wav ? `data:audio/wav;base64,${captcha.ok.wav}` @@ -47,7 +50,7 @@ submitting = true try { - const res = await getClient().register({ + const res = await getClient(instance, fetch).register({ username: username, email: email, password: password,