diff --git a/search/indexing.go b/search/indexing.go index cc54f0373..5b0bfb512 100644 --- a/search/indexing.go +++ b/search/indexing.go @@ -59,7 +59,7 @@ func (s *Server) indexPost(ctx context.Context, ident *identity.Identity, rec *a _, err := util.ParseTimestamp(rec.CreatedAt) if err != nil { log.Warn("post had invalid timestamp", "createdAt", rec.CreatedAt, "parseErr", err) - rec.CreatedAt = "" + return fmt.Errorf("post had invalid timestamp: %w", err) } doc := TransformPost(rec, ident, rkey, rcid.String())