From da077b2d7acc076ba85ec760407b6d73e87beaee Mon Sep 17 00:00:00 2001 From: takecchi Date: Wed, 6 Dec 2023 15:57:08 +0900 Subject: [PATCH] =?UTF-8?q?=E9=8D=B5=E3=82=A2=E3=82=AB=E3=82=A6=E3=83=B3?= =?UTF-8?q?=E3=83=88=E5=AE=9F=E8=A3=85=E6=99=82=E3=81=AETODO=E8=BF=BD?= =?UTF-8?q?=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx b/src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx index 13b3ab03..80a0c69b 100644 --- a/src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx +++ b/src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx @@ -51,6 +51,8 @@ export async function generateMetadata({ params }: Params): Promise { export default async function page({ params }: Params) { const post = await fetchPost(params.postId); + + // TODO 権限エラーの場合はそのままPostPageにundefinedを投げる if (!post) { notFound(); }