Compare commits
1 Commits
girlcock
...
fix/issue-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b00c72e1c |
@@ -29,7 +29,8 @@ export const getPost: Handler<
|
|||||||
Env,
|
Env,
|
||||||
'/profile/:user/post/:post' | '/https://bsky.app/profile/:user/post/:post'
|
'/profile/:user/post/:post' | '/https://bsky.app/profile/:user/post/:post'
|
||||||
> = async (c) => {
|
> = async (c) => {
|
||||||
const { user, post } = c.req.param();
|
let { user, post } = c.req.param();
|
||||||
|
post = post.replaceAll('|', '');
|
||||||
const isDirect = c.req.query('direct');
|
const isDirect = c.req.query('direct');
|
||||||
|
|
||||||
const agent = c.get('Agent');
|
const agent = c.get('Agent');
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ export const getProfile: Handler<
|
|||||||
Env,
|
Env,
|
||||||
'/profile/:user' | '/https://bsky.app/profile/:user'
|
'/profile/:user' | '/https://bsky.app/profile/:user'
|
||||||
> = async (c) => {
|
> = async (c) => {
|
||||||
const { user } = c.req.param();
|
let { user } = c.req.param();
|
||||||
|
user = user.replaceAll('|', '');
|
||||||
const agent = c.get('Agent');
|
const agent = c.get('Agent');
|
||||||
try {
|
try {
|
||||||
var { data } = await fetchProfile(agent, { user });
|
var { data } = await fetchProfile(agent, { user });
|
||||||
|
|||||||
Reference in New Issue
Block a user