Merge branch 'encrypted-tag' into 'main'

Add `encrypted` tag to Pleroma configs event

See merge request soapbox-pub/ditto!322
This commit is contained in:
Alex Gleason 2024-05-26 17:45:44 +00:00
commit 30881275ad
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 });