mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🐛 Correctly parse instance hostname (not a URL)
This commit is contained in:
parent
df5e06ca8a
commit
9cd53ce58a
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue