schema: dangling space is not a problem in content.

This commit is contained in:
fiatjaf
2026-05-03 13:47:23 -03:00
parent 05b426e67e
commit cbf335a8fa
-4
View File
@@ -246,10 +246,6 @@ func (rte RequiredTagError) Error() string {
}
func (v *Validator) ValidateEvent(evt nostr.Event) error {
if !isTrimmed(evt.Content) {
return ContentError{ErrDanglingSpace}
}
if sch, ok := v.Schema.Kinds[strconv.FormatUint(uint64(evt.Kind), 10)]; ok {
if validator, ok := v.TypeValidators[sch.Content.Type]; ok {
if err := validator(evt.Content, &sch.Content); err != nil {