refactor(federation): ♻️ Correctly handle bridge requests and instance signatures in user inboxes

This commit is contained in:
Jesse Wierzbinski 2024-11-23 23:02:18 +01:00
parent afc5a74a40
commit ace6921447
No known key found for this signature in database
8 changed files with 2310 additions and 36 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "Instances" ADD COLUMN "public_key" jsonb;

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

@ -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", {