fix json encoding of naddr pointer with identifier.

This commit is contained in:
fiatjaf
2026-05-08 12:51:13 -03:00
parent a5aeff31d7
commit 03a55cc0b8
+1 -1
View File
@@ -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\":"