mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Correctly parse instance hostname (not a URL)
This commit is contained in:
parent
df5e06ca8a
commit
9cd53ce58a
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue