Add `encrypted` tag to Pleroma configs event
This commit is contained in:
parent
3f9908449b
commit
c03be1726e
|
@ -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