1
0
Fork 0

Add special case for rint.osaka

This commit is contained in:
Sam Therapy 2023-10-09 19:40:52 +02:00
parent 86d1e04602
commit bf073cfbc0
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ app.get("/robots.txt", (c) => c.text("User-agent: *\nDisallow: /"))
app.all("*", (c) => {
const query: SearchQuery = {
site: c.req.query("booru") ?? "safebooru",
tags: c.req.query("tags") ?? "tohsaka_rin",
tags: c.req.query("tags") ?? c.req.header("Host") === "rint.osaka" ? "tohsaka_rin" : "",
}
return Search(c, query)