From 3319ced5c1c2c9b725535b8eb210f11cf4e63433 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 19 Feb 2026 20:23:52 -0600 Subject: [PATCH] feat: return all NIP-05 mappings when no name parameter is provided --- internal_services.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal_services.jl b/internal_services.jl index 57d6e30..d291288 100644 --- a/internal_services.jl +++ b/internal_services.jl @@ -713,6 +713,12 @@ function nostr_json_handler(req::HTTP.Request) if !isempty(local pks = nostr_json_query_by_name(name)) nj = Dict([name=>pks[1]]) end + else + lock(nostr_json_query_lock) do + for (name, pk) in DB.exec(verified_users[], DB.@sql("select name, pubkey from verified_users")) + nj[name] = Nostr.PubKeyId(pk) + end + end end HTTP.Response(200, HTTP.Headers(["Content-Type"=>"application/json"]), JSON.json((; names=nj), 2)) end