don't print identifier in replaceable pointers when all is ok.

This commit is contained in:
fiatjaf
2026-04-18 15:02:58 -03:00
parent f50b7b0f8d
commit 8200164174
+3 -1
View File
@@ -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)