mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Fix multiple incorrect outputs in federation routes
This commit is contained in:
parent
b4b8f51a5a
commit
a603b602e6
5 changed files with 45 additions and 36 deletions
|
|
@ -5,7 +5,8 @@ import {
|
|||
import { config } from "config-manager";
|
||||
import type { User } from "~packages/database-interface/user";
|
||||
|
||||
export const localObjectURI = (id: string) => `/objects/${id}`;
|
||||
export const localObjectURI = (id: string) =>
|
||||
new URL(`/objects/${id}`, config.http.base_url).toString();
|
||||
|
||||
export const objectToInboxRequest = async (
|
||||
object: typeof EntityValidator.$Entity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue