fix: spoilers break embedding
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user