From ed13b689891e8c516462fa3f20a9c27b28c58c1e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 22 Feb 2023 15:04:24 -0500 Subject: [PATCH] collapse the danger honks by default when logged out --- hfcs.go | 6 ++++++ views/honk.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hfcs.go b/hfcs.go index 2277b8a..ec82ecc 100644 --- a/hfcs.go +++ b/hfcs.go @@ -407,6 +407,12 @@ func unsee(honks []*Honk, userid int64) { h.Open = "" } } + } else { + for _, h := range honks { + if h.Precis != "" { + h.Open = "" + } + } } } diff --git a/views/honk.html b/views/honk.html index 8063800..f015a3a 100644 --- a/views/honk.html +++ b/views/honk.html @@ -52,7 +52,7 @@ in reply to: {{ .RID }}

-{{ .HTPrecis }} +{{ .HTPrecis }}

{{ .HTPrecis }}

{{ .HTML }} {{ with .Time }}