From 8200164174b82b4b360317ae0ad925d616f8bbce Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 18 Apr 2026 15:02:58 -0300 Subject: [PATCH] don't print identifier in replaceable pointers when all is ok. --- pointers_easyjson.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pointers_easyjson.go b/pointers_easyjson.go index 7c99e80..5d4aa60 100644 --- a/pointers_easyjson.go +++ b/pointers_easyjson.go @@ -313,7 +313,9 @@ func easyjson33014d6eEncodeFiatjafComNostr2(out *jwriter.Writer, in EntityPointe out.RawString(prefix) out.Uint(uint(in.Kind)) } - { + if in.Identifier == "" && in.Kind.IsReplaceable() { + // 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\":" out.RawString(prefix) out.String(in.Identifier)