From 3f6832356232cee32594ac5821b024578a8e17fc Mon Sep 17 00:00:00 2001 From: "planetrenox@protonmail.com" Date: Mon, 12 Oct 2026 14:17:50 +0000 Subject: [PATCH] Fix: Send cached-result search alerts at priority 2 like other searches Co-Authored-By: Claude Opus 5.5 --- functions/[[path]].js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functions/[[path]].js b/functions/[[path]].js index 97c18d3..133c8fc 100644 --- a/functions/[[path]].js +++ b/functions/[[path]].js @@ -176,9 +176,7 @@ COMMIT TRANSACTION;`; return asset("limit.webp"); } - note(list - ? { title: `New ${label}Search`, message: `Query: ${query} (from cached results, not counted, ${ip})`, tags: "mag,zap", priority: 1 } - : { title: `New ${label}Search`, message: `Query: ${query} (Search #${count} for ${ip})`, tags: "mag", priority: 2 }); + note({ title: `New ${label}Search`, message: `Query: ${query} (${list ? "from cached results, not counted," : `Search #${count} for`} ${ip})`, tags: list ? "mag,zap" : "mag", priority: 2 }); // Called once the result (image or error) is stored, so waiters serve it right away instead of at lock expiry const release = () => locked && context.waitUntil(db(`DELETE lock:\`${keyHash}\`;`).catch(() => {}));