mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-29 03:04:25 +01:00
Add encrypted tag to Pleroma configs event
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user