aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/nostr.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/nostr.ts b/routes/nostr.ts
index 9c61bf16..35ed6fce 100644
--- a/routes/nostr.ts
+++ b/routes/nostr.ts
@@ -35,6 +35,7 @@ export default {
if (event) return res.send(event);
event = await get({ ids: [id] });
+ if (!event) return res.code(404).send("Not found");
if (!full) return res.send(event);
const parts = parseContent(event);