remove support for extra fields in events -- was deprecated.
This commit is contained in:
@@ -22,7 +22,6 @@ func easyjsonF642ad3eDecodeGithubComNbdWtfGoNostr(in *jlexer.Lexer, out *Event)
|
||||
in.Skip()
|
||||
return
|
||||
}
|
||||
out.extra = make(map[string]any)
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeFieldName(true)
|
||||
@@ -85,8 +84,6 @@ func easyjsonF642ad3eDecodeGithubComNbdWtfGoNostr(in *jlexer.Lexer, out *Event)
|
||||
out.Content = in.String()
|
||||
case "sig":
|
||||
out.Sig = in.String()
|
||||
default:
|
||||
out.extra[key] = in.Interface()
|
||||
}
|
||||
in.WantComma()
|
||||
}
|
||||
@@ -155,12 +152,6 @@ func easyjsonF642ad3eEncodeGithubComNbdWtfGoNostr(out *jwriter.Writer, in Event)
|
||||
out.String(in.Sig)
|
||||
}
|
||||
}
|
||||
{
|
||||
for key, value := range in.extra {
|
||||
out.RawString(",\"" + key + "\":")
|
||||
out.Raw(json.Marshal(value))
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user