mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix: 🚑 Patch federation library to work around a bug in Bun's bundling
Fixes build failures
This commit is contained in:
parent
5aa1c4e625
commit
24172b5138
4 changed files with 48 additions and 11 deletions
|
|
@ -2,6 +2,7 @@ import { apiRoute, applyConfig, idValidator, webfingerMention } from "@/api";
|
|||
import { createRoute } from "@hono/zod-openapi";
|
||||
import { getLogger } from "@logtape/logtape";
|
||||
import type { ResponseError } from "@versia/federation";
|
||||
import { WebFinger } from "@versia/federation/schemas";
|
||||
import { and, eq, isNull } from "drizzle-orm";
|
||||
import { lookup } from "mime-types";
|
||||
import { z } from "zod";
|
||||
|
|
@ -49,16 +50,7 @@ const route = createRoute({
|
|||
description: "User information",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: z.object({
|
||||
subject: z.string(),
|
||||
links: z.array(
|
||||
z.object({
|
||||
rel: z.string(),
|
||||
type: z.string(),
|
||||
href: z.string(),
|
||||
}),
|
||||
),
|
||||
}),
|
||||
schema: WebFinger,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue