From 4fdc81cbed0c8d5ea728cc652a9c6b779eddf82a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 3 Oct 2019 00:22:01 -0400 Subject: [PATCH] add a little length filter --- fun.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fun.go b/fun.go index ed9415d..c21d11f 100644 --- a/fun.go +++ b/fun.go @@ -85,6 +85,13 @@ func reverbolate(userid int64, honks []*Honk) { h.Precis = "" } } + if len(h.Noise) > 4000 && h.Open == "open" { + if h.Precis == "" { + h.Precis = "really freaking long" + } + h.Open = "" + } + h.HTPrecis, _ = filt.String(h.Precis) h.HTML, _ = filt.String(h.Noise) emuxifier := func(e string) string {