diff --git a/pkgs/app/src/routes/getPost.tsx b/pkgs/app/src/routes/getPost.tsx index 0616761..6a4074c 100644 --- a/pkgs/app/src/routes/getPost.tsx +++ b/pkgs/app/src/routes/getPost.tsx @@ -29,7 +29,8 @@ export const getPost: Handler< Env, '/profile/:user/post/:post' | '/https://bsky.app/profile/:user/post/:post' > = async (c) => { - const { user, post } = c.req.param(); + let { user, post } = c.req.param(); + post = post.replaceAll('|', ''); const isDirect = c.req.query('direct'); const agent = c.get('Agent'); diff --git a/pkgs/app/src/routes/getProfile.tsx b/pkgs/app/src/routes/getProfile.tsx index cbad827..3ba1d35 100644 --- a/pkgs/app/src/routes/getProfile.tsx +++ b/pkgs/app/src/routes/getProfile.tsx @@ -7,7 +7,8 @@ export const getProfile: Handler< Env, '/profile/:user' | '/https://bsky.app/profile/:user' > = async (c) => { - const { user } = c.req.param(); + let { user } = c.req.param(); + user = user.replaceAll('|', ''); const agent = c.get('Agent'); try { var { data } = await fetchProfile(agent, { user });