More work towards support moving/deleting instance
This commit is contained in:
parent
b03daf1274
commit
5f20eab3f1
7 changed files with 126 additions and 1 deletions
|
@ -29,6 +29,7 @@ async def webfinger(
|
|||
|
||||
is_404 = False
|
||||
|
||||
resp: httpx.Response | None = None
|
||||
async with httpx.AsyncClient() as client:
|
||||
for i, proto in enumerate(protos):
|
||||
try:
|
||||
|
@ -59,7 +60,10 @@ async def webfinger(
|
|||
if is_404:
|
||||
return None
|
||||
|
||||
return resp.json()
|
||||
if resp:
|
||||
return resp.json()
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
async def get_remote_follow_template(resource: str) -> str | None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue