mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ♻️ Correctly handle bridge requests and instance signatures in user inboxes
This commit is contained in:
parent
afc5a74a40
commit
ace6921447
8 changed files with 2310 additions and 36 deletions
1
drizzle/migrations/0035_pretty_whiplash.sql
Normal file
1
drizzle/migrations/0035_pretty_whiplash.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "Instances" ADD COLUMN "public_key" jsonb;
|
||||
2225
drizzle/migrations/meta/0035_snapshot.json
Normal file
2225
drizzle/migrations/meta/0035_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -246,6 +246,13 @@
|
|||
"when": 1729789587213,
|
||||
"tag": "0034_jittery_proemial_gods",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 35,
|
||||
"version": "7",
|
||||
"when": 1732398961365,
|
||||
"tag": "0035_pretty_whiplash",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { Source as ApiSource } from "@versia/client/types";
|
||||
import type { ContentFormat } from "@versia/federation/types";
|
||||
import type { ContentFormat, InstanceMetadata } from "@versia/federation/types";
|
||||
import type { Challenge } from "altcha-lib/types";
|
||||
import { relations, sql } from "drizzle-orm";
|
||||
import {
|
||||
|
|
@ -351,6 +351,7 @@ export const Instances = pgTable("Instances", {
|
|||
.notNull()
|
||||
.$type<"versia" | "activitypub">()
|
||||
.default("versia"),
|
||||
publicKey: jsonb("public_key").$type<InstanceMetadata["public_key"]>(),
|
||||
});
|
||||
|
||||
export const OpenIdAccounts = pgTable("OpenIdAccounts", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue