From 03a55cc0b816163db6246ed323eeb122ccb85d7a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 8 May 2026 12:51:13 -0300 Subject: [PATCH] fix json encoding of naddr pointer with identifier. --- pointers_easyjson.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pointers_easyjson.go b/pointers_easyjson.go index 5d4aa60..faf2c8b 100644 --- a/pointers_easyjson.go +++ b/pointers_easyjson.go @@ -313,7 +313,7 @@ func easyjson33014d6eEncodeFiatjafComNostr2(out *jwriter.Writer, in EntityPointe out.RawString(prefix) out.Uint(uint(in.Kind)) } - if in.Identifier == "" && in.Kind.IsReplaceable() { + if in.Identifier != "" || in.Kind.IsAddressable() { // this is expected, no identifiers in replaceable events, so don't print // but we do print in case there is an identifier, incorrectly, to assist debug const prefix string = ",\"identifier\":"