mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-03-17 03:01:01 +00:00
Feat: Include full URL in search notifications
This commit is contained in:
@@ -59,7 +59,7 @@ export async function onRequest(context) {
|
|||||||
// Notify of a new search (Cache Miss)
|
// Notify of a new search (Cache Miss)
|
||||||
context.waitUntil(notify(env, {
|
context.waitUntil(notify(env, {
|
||||||
title: "New Search",
|
title: "New Search",
|
||||||
message: `Query: ${query} (Search #${count + 1} for ${ip})`,
|
message: `Query: ${query} (Search #${count + 1} for ${ip})\n${url.origin}/${path}`,
|
||||||
tags: "mag",
|
tags: "mag",
|
||||||
priority: 3
|
priority: 3
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user