From 9cd53ce58ae1c4aa96c9957416037d8085d42eb9 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 27 Aug 2024 02:21:09 +0200 Subject: [PATCH] fix(federation): :bug: Correctly parse instance hostname (not a URL) --- server/api/users/:uuid/inbox/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/api/users/:uuid/inbox/index.ts b/server/api/users/:uuid/inbox/index.ts index bdba5b63..eb89d01d 100644 --- a/server/api/users/:uuid/inbox/index.ts +++ b/server/api/users/:uuid/inbox/index.ts @@ -142,8 +142,7 @@ export default apiRoute((app) => ); } - const hostname = new URL(sender?.data.instance?.baseUrl ?? "") - .hostname; + const hostname = sender?.data.instance?.baseUrl ?? ""; // Check if Origin is defederated if (