From dec141b52eab7a09f529a7448dbc201705a0edbc Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 17 May 2025 21:43:21 -0300 Subject: [PATCH] fix easyjson event encoding quotes. --- event_easyjson.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/event_easyjson.go b/event_easyjson.go index de1bc40..54b852c 100644 --- a/event_easyjson.go +++ b/event_easyjson.go @@ -83,15 +83,15 @@ func easyjsonEncodeEvent(out *jwriter.Writer, in Event) { if in.ID != ZeroID { out.RawString(",\"id\":\"") - out.RawString(hex.EncodeToString(in.ID[:])) + out.RawString(hex.EncodeToString(in.ID[:]) + "\"") } if in.PubKey != ZeroPK { - out.RawString("\",\"pubkey\":\"") - out.RawString(hex.EncodeToString(in.PubKey[:])) + out.RawString(",\"pubkey\":\"") + out.RawString(hex.EncodeToString(in.PubKey[:]) + "\"") } - out.RawString("\",\"created_at\":") + out.RawString(",\"created_at\":") out.Int64(int64(in.CreatedAt)) out.RawString(",\"tags\":")