mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(federation): ⬆️ Upgrade to Versia 0.5
This commit is contained in:
parent
e6c7e8a597
commit
ed9ffe34f4
10 changed files with 34 additions and 28 deletions
|
|
@ -5,9 +5,9 @@ import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
|
|||
|
||||
const schemas = {
|
||||
header: z.object({
|
||||
"x-signature": z.string().optional(),
|
||||
"x-nonce": z.string().optional(),
|
||||
"x-signed-by": z
|
||||
"versia-signature": z.string().optional(),
|
||||
"versia-signed-at": z.coerce.number().optional(),
|
||||
"versia-signed-by": z
|
||||
.string()
|
||||
.url()
|
||||
.or(z.string().startsWith("instance "))
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ const schemas = {
|
|||
uuid: z.string().uuid(),
|
||||
}),
|
||||
header: z.object({
|
||||
"x-signature": z.string().optional(),
|
||||
"x-nonce": z.string().optional(),
|
||||
"x-signed-by": z
|
||||
"versia-signature": z.string().optional(),
|
||||
"versia-signed-at": z.coerce.number().optional(),
|
||||
"versia-signed-by": z
|
||||
.string()
|
||||
.url()
|
||||
.or(z.string().startsWith("instance "))
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export default apiRoute((app) =>
|
|||
"pub.versia:custom_emojis",
|
||||
"pub.versia:instance_messaging",
|
||||
],
|
||||
versions: ["0.4.0"],
|
||||
versions: ["0.5.0"],
|
||||
},
|
||||
host: config.http.base_url.host,
|
||||
name: config.instance.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue