From 94d14fbef343fb86337ad891f472646d142e4c03 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 1 Jan 2023 15:33:59 +0100 Subject: [PATCH] Tweak webfinger endpoint --- app/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f4b15dc..b40e89b 100644 --- a/app/main.py +++ b/app/main.py @@ -1256,7 +1256,11 @@ 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}@{WEBFINGER_DOMAIN}", ID]: + if resource not in [ + f"acct:{USERNAME}@{WEBFINGER_DOMAIN}", + ID, + f"acct:{USERNAME}@{DOMAIN}", + ]: logger.info(f"Got invalid req for {resource}") raise HTTPException(status_code=404)