From 19d65c6faf7a46703e6398f49d7ac5d63e9830e7 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 10 Nov 2025 13:34:23 -0800 Subject: [PATCH] Fix: ntfy signup emoji and await --- functions/api/signup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/api/signup.js b/functions/api/signup.js index 4610f66..29793bf 100644 --- a/functions/api/signup.js +++ b/functions/api/signup.js @@ -1,9 +1,9 @@ -const ntfy = (env,topic,tags,msg,p=3) => +const ntfy = (env,topic,title,msg,p=3) => env.NTFY_TOPIC ? fetch(`https://ntfy.sh/${topic}`,{ method:"POST", headers:{ - "Title":tags, + "Title":`🆕 ${title}`, "Priority":String(p), "Content-Type":"text/plain" }, @@ -41,7 +41,7 @@ export async function onRequestPost({ request, env }) { .bind(username,pass_hash) .run(); - ntfy( + await ntfy( env, env.NTFY_TOPIC, "auth-signup",