mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-19 18:54:51 +00:00
Fix: Send cached-result search alerts at priority 2 like other searches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -176,9 +176,7 @@ COMMIT TRANSACTION;`;
|
|||||||
return asset("limit.webp");
|
return asset("limit.webp");
|
||||||
}
|
}
|
||||||
|
|
||||||
note(list
|
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 });
|
||||||
? { 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 });
|
|
||||||
|
|
||||||
// Called once the result (image or error) is stored, so waiters serve it right away instead of at lock expiry
|
// 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(() => {}));
|
const release = () => locked && context.waitUntil(db(`DELETE lock:\`${keyHash}\`;`).catch(() => {}));
|
||||||
|
|||||||
Reference in New Issue
Block a user