Webfinger strips extra space

test-fix-theme
Thomas Sileo 2022-11-11 15:25:55 +01:00
rodzic 698a2bae11
commit 164cd9bd00
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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://"):