From adbdf6f320dfadd389289adb4bd4b5f243f41588 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 19 Dec 2022 21:07:08 +0100 Subject: [PATCH] Fix webfinger domain support --- app/actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actor.py b/app/actor.py index 7d35bbe..f333071 100644 --- a/app/actor.py +++ b/app/actor.py @@ -59,7 +59,7 @@ def _handle(raw_actor: ap.RawObject) -> str: try: json_resp = resp.json() if json_resp.get("subject", "").startswith("acct:"): - return json_resp["subject"].removeprefix("acct:") + return "@" + json_resp["subject"].removeprefix("acct:") except Exception: logger.exception(f"Failed to parse webfinger response for {handle}") return handle