From cbf335a8fa4ee2a2a8475c1b76fd8b67acda6ece Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 3 May 2026 13:47:23 -0300 Subject: [PATCH] schema: dangling space is not a problem in content. --- schema/schema.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/schema/schema.go b/schema/schema.go index 6f726d9..313bc5f 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -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 {