Add name's pubkey to nip46 entry of nostr.json

This commit is contained in:
artur 2024-02-15 19:00:11 +03:00
parent 39920c975f
commit 43151f36b6

View File

@ -906,6 +906,7 @@ app.get(JSON_PATH, async (req, res) => {
if (rec) {
const { data: pubkey } = nip19.decode(rec.npub);
data.names[rec.name] = pubkey;
data.nip46[pubkey] = [BUNKER_RELAY];
}
res.status(200).send(data);