add a little length filter

This commit is contained in:
Ted Unangst 2019-10-03 00:22:01 -04:00
parent 3cd2f57f9e
commit 4fdc81cbed
1 changed files with 7 additions and 0 deletions

7
fun.go
View File

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