From 19ff8dbd8ff1488c91a8b5dfb61e4edebf4b7e00 Mon Sep 17 00:00:00 2001 From: xuu Date: Fri, 4 Apr 2025 11:28:45 -0600 Subject: [PATCH] chore: make handling more sensitive --- http-html.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http-html.go b/http-html.go index 3ef7ea4..ae6ddbe 100644 --- a/http-html.go +++ b/http-html.go @@ -182,7 +182,9 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) { } subject := "" if s := twt.Subject(); s != nil { - subject = s.Tag().Text() + if tag := s.Tag(); tag != nil { + subject = tag.Text() + } } i, err = fmt.Fprintf(w, `