From 164cd9bd008a80ed35bc299424fae5f6b0a6b4a0 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 11 Nov 2022 15:25:55 +0100 Subject: [PATCH] Webfinger strips extra space --- app/webfinger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/webfinger.py b/app/webfinger.py index 2858069..e0bd854 100644 --- a/app/webfinger.py +++ b/app/webfinger.py @@ -12,6 +12,7 @@ async def webfinger( resource: str, ) -> dict[str, Any] | None: # noqa: C901 """Mastodon-like WebFinger resolution to retrieve the activity stream Actor URL.""" + resource = resource.strip() logger.info(f"performing webfinger resolution for {resource}") protos = ["https", "http"] if resource.startswith("http://"):