diff --git a/src/pages/profile/profilePost.tsx b/src/pages/profile/profilePost.tsx index 64a47848..751b8a0e 100644 --- a/src/pages/profile/profilePost.tsx +++ b/src/pages/profile/profilePost.tsx @@ -1,4 +1,4 @@ -import { and, eq, or } from "drizzle-orm"; +import { and, eq, inArray, or } from "drizzle-orm"; import { Hono } from "hono"; import { Layout } from "../../components/Layout.tsx"; import { Post as PostView } from "../../components/Post.tsx"; @@ -66,6 +66,7 @@ profilePost.get<"/:handle{@[^/]+}/:id{[-a-f0-9]+}">(async (c) => { }, }, replies: { + where: inArray(posts.visibility, ["public", "unlisted"]), with: { account: true, media: true,