We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abad5c3 commit 312986dCopy full SHA for 312986d
src/pages/profile/index.tsx
@@ -60,7 +60,7 @@ profile.get<"/:handle">(async (c) => {
60
),
61
);
62
const maxPage = Math.ceil(totalPosts / PAGE_SIZE);
63
- if (page > maxPage) {
+ if (page > maxPage && !(page <= 1 && totalPosts < 1)) {
64
return c.notFound();
65
}
66
const postList = await db.query.posts.findMany({
0 commit comments