Add `encrypted` tag to Pleroma configs event

This commit is contained in:
Alex Gleason 2024-05-26 12:43:08 -05:00
parent 3f9908449b
commit c03be1726e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ const updateConfigController: AppController = async (c) => {
await createAdminEvent({
kind: 30078,
content: await new AdminSigner().nip44.encrypt(pubkey, JSON.stringify(configs)),
tags: [['d', 'pub.ditto.pleroma.config']],
tags: [
['d', 'pub.ditto.pleroma.config'],
['encrypted', 'nip44'],
],
}, c);
return c.json({ configs: newConfigs, need_reboot: false });