Merge remote-tracking branch 'origin/main' into rework-stats

This commit is contained in:
Alex Gleason 2024-05-24 13:15:30 -05:00
commit 83b2a627c3
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 3 deletions

View File

@ -225,10 +225,10 @@ const updateCredentialsSchema = z.object({
locked: z.boolean().optional(), locked: z.boolean().optional(),
bot: z.boolean().optional(), bot: z.boolean().optional(),
discoverable: z.boolean().optional(), discoverable: z.boolean().optional(),
nip05: z.string().optional(), nip05: z.string().email().optional(),
pleroma_settings_store: z.unknown().optional(), pleroma_settings_store: z.unknown().optional(),
lud16: z.string().email().optional().catch(''), lud16: z.string().email().optional(),
website: z.string().url().optional().catch(''), website: z.string().url().optional(),
}); });
const updateCredentialsController: AppController = async (c) => { const updateCredentialsController: AppController = async (c) => {
@ -252,6 +252,7 @@ const updateCredentialsController: AppController = async (c) => {
nip05, nip05,
lud16, lud16,
website, website,
bot,
} = result.data; } = result.data;
const [avatar, header] = await Promise.all([ const [avatar, header] = await Promise.all([
@ -266,6 +267,7 @@ const updateCredentialsController: AppController = async (c) => {
meta.nip05 = nip05 ?? meta.nip05; meta.nip05 = nip05 ?? meta.nip05;
meta.lud16 = lud16 ?? meta.lud16; meta.lud16 = lud16 ?? meta.lud16;
meta.website = website ?? meta.website; meta.website = website ?? meta.website;
meta.bot = bot ?? meta.bot;
const event = await createEvent({ const event = await createEvent({
kind: 0, kind: 0,