diff --git a/functions/api/links/delete.js b/functions/api/links/delete.js index 2158c90..e68bfc8 100644 --- a/functions/api/links/delete.js +++ b/functions/api/links/delete.js @@ -1,9 +1,9 @@ -const ntfy = (env,topic,tags,msg,p=2) => +const ntfy = (env,topic,title,msg,p=2) => env.NTFY_TOPIC ? fetch(`https://ntfy.sh/${topic}`,{ method:"POST", headers:{ - "Title":tags, + "Title":`🗑️ ${title}`, "Priority":String(p), "Content-Type":"text/plain" },