add a little length filter

master
Ted Unangst 5 years ago
parent 3cd2f57f9e
commit 4fdc81cbed

@ -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 {

Loading…
Cancel
Save