From 647d6193fbecfd591eb8d92881a754b3006bea89 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 10 Nov 2025 13:34:09 -0800 Subject: [PATCH] Fix: ntfy title emoji on create --- functions/api/links/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/api/links/create.js b/functions/api/links/create.js index b83e96e..3d62b1a 100644 --- a/functions/api/links/create.js +++ b/functions/api/links/create.js @@ -6,12 +6,12 @@ const RESERVED = new Set([ "settings","profile","password","user","users","link","links","url","urls", "robots","sitemap","favicon","well-known","assets","static","img","js","css","public" ]); -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" },