From 032f5038e17afb80cd704b8363b8c3c8688e16b6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 16 Nov 2026 12:35:04 -0700 Subject: Support page: on Tor, point people to support@coinos.io instead of a form that always fails The onion site skipped reCAPTCHA and posted an empty token, which the server always rejects with "failed captcha", so every Tor support request ended in "problem submitting". On .onion the page now shows the support email instead of the form, and a failed send on the clearnet site says to email us. Locale run also filled in strings missing from earlier commits (API tokens, account reset). Co-Authored-By: Claude Opus 5.5 --- src/routes/(static)/support/+page.svelte | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/routes/(static)/support') diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte index 4cf9706d..05667763 100644 --- a/src/routes/(static)/support/+page.svelte +++ b/src/routes/(static)/support/+page.svelte @@ -27,17 +27,6 @@ let submit = (e) => { e.preventDefault(); - if (isTor) { - post("/post/email", { - username: user?.username || `${username} (unverified)`, - email, - message, - token: "", - }) - .then(() => (sent = true)) - .catch(() => fail("problem submitting")); - return; - } grecaptcha.ready(() => { grecaptcha.execute(recaptchaSiteKey, { action: "submit" }).then((token) => post("/post/email", { @@ -47,7 +36,7 @@ token, }) .then(() => (sent = true)) - .catch(() => fail("problem submitting")), + .catch(() => fail(`${$t("user.support.failed")} support@coinos.io`)), ); }); }; @@ -85,6 +74,15 @@ > + {:else if isTor} +

+ {$t("user.support.header")} +

+ +

+ {$t("user.support.torEmail")} + support@coinos.io +

{:else}

{$t("user.support.header")} -- cgit v1.2.3