From afcbbd8d75e5c37348f72a6167a5172214ce84d5 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 13 May 2020 18:05:38 -0400 Subject: [PATCH] chat backs --- fun.go | 2 +- views/chatter.html | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/fun.go b/fun.go index 489adb5..0c61493 100644 --- a/fun.go +++ b/fun.go @@ -190,7 +190,7 @@ func filterchonk(ch *Chonk) { if short := shortname(ch.UserID, ch.Who); short != "" { ch.Handle = short } else { - _, ch.Handle = handles(ch.Who) + ch.Handle, _ = handles(ch.Who) } } diff --git a/views/chatter.html b/views/chatter.html index b2052b4..f0d3986 100644 --- a/views/chatter.html +++ b/views/chatter.html @@ -15,10 +15,22 @@ {{ $chonkcsrf := .ChonkCSRF }} {{ range .Chatter }}
+{{ $target := "" }} {{ range . }} +{{ if eq $target "" }} +{{ $target = .Target }} +

chatter: {{ .Target }} +{{ end }}

{{ .Handle }}: {{ .HTML }} {{ end }} +

+ + +


+ +

+

{{ end }}