mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
feat(federation): ✨ Store remote instance shared inbox and extensions as well
This commit is contained in:
parent
5fc6c4dcfa
commit
7a73a1a24e
|
|
@ -10,7 +10,7 @@ Versia Server `0.8.0` is fully backwards compatible with `0.7.0`.
|
|||
- Added an administration UI for managing the queue.
|
||||
- Upgraded Bun to `1.1.36`.
|
||||
- Implemented support for the [Instance Messaging Extension](https://versia.pub/extensions/instance-messaging)
|
||||
- Implement [Shared Inboxes](https://versia.pub/federation#inboxes)
|
||||
- Implement [Shared Inboxes](https://versia.pub/federation#inboxes) support.
|
||||
- Allowed `<div>` and `<span>` tags in Markdown.
|
||||
- Added `--password` flag to the user creation CLI.
|
||||
|
||||
|
|
|
|||
|
|
@ -359,6 +359,8 @@ export class Instance extends BaseInterface<typeof Instances> {
|
|||
logo: metadata.logo,
|
||||
protocol,
|
||||
publicKey: metadata.public_key,
|
||||
inbox: metadata.shared_inbox ?? null,
|
||||
extensions: metadata.extensions ?? null,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -382,6 +384,8 @@ export class Instance extends BaseInterface<typeof Instances> {
|
|||
logo: metadata.logo,
|
||||
protocol,
|
||||
publicKey: metadata.public_key,
|
||||
inbox: metadata.shared_inbox ?? null,
|
||||
extensions: metadata.extensions ?? null,
|
||||
});
|
||||
|
||||
return this;
|
||||
|
|
|
|||
2
drizzle/migrations/0036_cuddly_ironclad.sql
Normal file
2
drizzle/migrations/0036_cuddly_ironclad.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "Instances" ADD COLUMN "inbox" text;--> statement-breakpoint
|
||||
ALTER TABLE "Instances" ADD COLUMN "extensions" jsonb;
|
||||
2237
drizzle/migrations/meta/0036_snapshot.json
Normal file
2237
drizzle/migrations/meta/0036_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -253,6 +253,13 @@
|
|||
"when": 1732398961365,
|
||||
"tag": "0035_pretty_whiplash",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 36,
|
||||
"version": "7",
|
||||
"when": 1732563077877,
|
||||
"tag": "0036_cuddly_ironclad",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -351,7 +351,9 @@ export const Instances = pgTable("Instances", {
|
|||
.notNull()
|
||||
.$type<"versia" | "activitypub">()
|
||||
.default("versia"),
|
||||
inbox: text("inbox"),
|
||||
publicKey: jsonb("public_key").$type<InstanceMetadata["public_key"]>(),
|
||||
extensions: jsonb("extensions").$type<InstanceMetadata["extensions"]>(),
|
||||
});
|
||||
|
||||
export const OpenIdAccounts = pgTable("OpenIdAccounts", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue