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:
commit
30881275ad
|
@ -51,7 +51,10 @@ const updateConfigController: AppController = async (c) => {
|
||||||
await createAdminEvent({
|
await createAdminEvent({
|
||||||
kind: 30078,
|
kind: 30078,
|
||||||
content: await new AdminSigner().nip44.encrypt(pubkey, JSON.stringify(configs)),
|
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);
|
}, c);
|
||||||
|
|
||||||
return c.json({ configs: newConfigs, need_reboot: false });
|
return c.json({ configs: newConfigs, need_reboot: false });
|
||||||
|
|
Loading…
Reference in New Issue