Fix webfinger logic to fetch handle

This commit is contained in:
Thomas Sileo 2022-12-19 21:17:34 +01:00
parent adbdf6f320
commit c506299089

View file

@ -38,7 +38,7 @@ def _handle(raw_actor: ap.RawObject) -> str:
resp: httpx.Response | None = None
for url in {
f"https://{domain.hostname}/.well-known/webfinger",
f"https://{domain.hostname}/.well-known/webfinger",
f"http://{domain.hostname}/.well-known/webfinger",
}:
try:
logger.info(f"Webfinger {handle} at {url}")