fix: bsky parse author link

This commit is contained in:
xtaodada 2024-10-21 15:25:04 +08:00
parent fe78cf4006
commit b842cedae1
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -31,9 +31,7 @@ async def process_url(url: str, reply: Reply):
await Timeline.send_to_user(reply, post) await Timeline.send_to_user(reply, post)
except Exception as e: except Exception as e:
print(e) print(e)
elif url.path == "/": elif url.path == f"/profile/{author_handle}":
return
else:
# 解析用户 # 解析用户
try: try:
user = await Timeline.fetch_user(author_handle) user = await Timeline.fetch_user(author_handle)