Update index.ts

This commit is contained in:
2025-12-08 18:22:09 +09:00
parent 1fc940e26a
commit ebe47393aa
+1 -1
View File
@@ -279,7 +279,7 @@ export const app = new Elysia()
const metadata = await getMetadata()
const photo = metadata.find((p) => p.id === idOrKey) || metadata.find((p) => p.owner_key === idOrKey)
if (!photo || photo.hide === true) done(404, "Photo not found")
if (!photo || photo.hide === true) done(404, "GET /:idOrKey - Photo not found")
if (photo.id != idOrKey) return redirect(`https://aza.moe/photo/${photo.id}?owner_key=${idOrKey}`)
return redirect(`https://aza.moe/photo/${photo.id}`)