From f34e0b376bf4ce387d6631bed775d69c1aace95a Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 31 Dec 2022 19:23:22 +0100 Subject: [PATCH] Fix webfinger support for custom domains --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index ac3fee2..f4b15dc 100644 --- a/app/main.py +++ b/app/main.py @@ -1256,7 +1256,7 @@ async def post_remote_interaction( @app.get("/.well-known/webfinger") async def wellknown_webfinger(resource: str) -> JSONResponse: """Exposes/servers WebFinger data.""" - if resource not in [f"acct:{USERNAME}@{DOMAIN}", ID]: + if resource not in [f"acct:{USERNAME}@{WEBFINGER_DOMAIN}", ID]: logger.info(f"Got invalid req for {resource}") raise HTTPException(status_code=404)