aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)/support
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(static)/support')
-rw-r--r--src/routes/(static)/support/+page.svelte22
1 files changed, 10 insertions, 12 deletions
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")} [email protected]`)),
);
});
};
@@ -85,6 +74,15 @@
>
</a>
</div>
+ {:else if isTor}
+ <h1 class="text-center text-3xl md:text-4xl font-semibold mb-8">
+ {$t("user.support.header")}
+ </h1>
+
+ <p class="text-secondary text-lg">
+ {$t("user.support.torEmail")}
+ <a class="underline" href="mailto:[email protected]">[email protected]</a>
+ </p>
{:else}
<h1 class="text-center text-3xl md:text-4xl font-semibold mb-8">
{$t("user.support.header")}