chore: add view thread

This commit is contained in:
xuu 2025-04-02 14:28:12 -06:00
parent 14e1c4176d
commit 7d336285bf
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F

View File

@ -203,7 +203,7 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) {
<div class="date">
<div><a class="u-url" href="%s">%s</a></div>
<div><small> </small></div>
<div><small><a href="%s"> View Thread</a></small></div>
</div>
</header>
<section>
@ -215,7 +215,7 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) {
"/?uri="+twter.URI, twter.Nick,
twter.URI, uri.Host,
"/conv/"+twt.Subject().Tag().Text(), fmt.Sprintf("<time datetime='%s'>%s</time>", twt.Created().Format(time.RFC3339), twt.Created().Format(time.RFC822)),
// time.Since(twt.Created()).Round(time.Minute).String(),
"/conv/"+twt.Subject().Tag().Text(),
twt,
)
output += int64(i)