Skip to content

Commit

Permalink
鍵アカウント実装時のTODO追記
Browse files Browse the repository at this point in the history
  • Loading branch information
takecchi committed Dec 6, 2023
1 parent 43a1367 commit da077b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/(menu)/(public)/[username]/posts/[postId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export async function generateMetadata({ params }: Params): Promise<Metadata> {

export default async function page({ params }: Params) {
const post = await fetchPost(params.postId);

// TODO 権限エラーの場合はそのままPostPageにundefinedを投げる
if (!post) {
notFound();
}
Expand Down

0 comments on commit da077b2

Please sign in to comment.