From 209a7f0b4f6e2ede1a9649f9dbd9a933bb7744f9 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 29 Oct 2019 17:56:21 -0400 Subject: [PATCH] redo glow check. sometimes first one isn't visible --- web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.go b/web.go index 287ae49..d723820 100644 --- a/web.go +++ b/web.go @@ -899,8 +899,8 @@ func showonehonk(w http.ResponseWriter, r *http.Request) { rawhonks := gethonksbyconvoy(honk.UserID, honk.Convoy, 0) reversehonks(rawhonks) var honks []*Honk - for i, h := range rawhonks { - if i > 0 && h.XID == xid { + for _, h := range rawhonks { + if h.XID == xid && len(honks) != 0 { h.Style += " glow" } if h.Public && (h.Whofore == 2 || h.IsAcked()) {