diff --git a/components/Post.tsx b/components/Post.tsx
index ed9fcc2..03f6f37 100644
--- a/components/Post.tsx
+++ b/components/Post.tsx
@@ -69,18 +69,9 @@ export default function Post(props: { post: GetPostsOutput; userId?: number }) {
{post.value.draft &&
(
-
-
- PRIVATE
-
-
This post is visible only to you.
-
+
+ 🔒 PRIVATE
+
)}
{post.draft &&
(
-
-
- PRIVATE
-
-
This post is visible only to you.
-
+
+ 🔒 PRIVATE
+
)}
{
const postId = Number(ctx.params.postId);
+ if (Number.isNaN(postId)) {
+ return ctx.renderNotFound();
+ }
const post = await selectPost(postId);
if (!post) {
return ctx.renderNotFound();