diff options
| author | Adam Soltys <[email protected]> | 2026-03-13 10:13:34 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-13 10:13:34 -0700 |
| commit | fa5188d7e4781e90d1f315274f840f60db326f7e (patch) | |
| tree | 6961757c2723efa2cc13334a0d7d3740a3ce7f7a /routes | |
| parent | 69d17aea7e0cfdd6429fdbb07c2a1f5c7497e798 (diff) | |
| download | coinos-server-fa5188d7e4781e90d1f315274f840f60db326f7e.tar.gz coinos-server-fa5188d7e4781e90d1f315274f840f60db326f7e.zip | |
use bytes for nostr tools
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/nostr.ts | 1 |
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); |
