Add nostr and pleroma to v2 instance

environments/review-instance-h-clda5e/deployments/4891
Alex Gleason 2024-10-11 02:55:13 -05:00
rodzic 0f7a43c51b
commit 5966f9efae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -208,6 +208,8 @@ const instanceV2Schema = coerceObject({
domain: z.string().catch(''),
icon: filteredArray(instanceIconSchema),
languages: filteredArray(z.string()),
nostr: nostrSchema.optional().catch(undefined),
pleroma: pleromaSchema,
registrations: registrationsSchema,
rules: filteredArray(ruleSchema),
source_url: z.string().url().optional().catch(undefined),
@ -229,6 +231,8 @@ function upgradeInstance(v1: InstanceV1): InstanceV2 {
domain: v1.uri,
icon: [],
languages: v1.languages,
nostr: v1.nostr,
pleroma: v1.pleroma,
registrations: {
approval_required: v1.approval_required,
enabled: v1.registrations,