a very plain text accessor that's helpful for debugging
Ted Unangst tedu@tedunangst.com
Fri, 25 Aug 2023 00:30:19 -0400
1 files changed,
11 insertions(+),
1 deletions(-)
jump to
M
database.go
→
database.go
@@ -790,9 +790,19 @@ return chatter
} func (honk *Honk) Plain() string { + return honktoplain(honk, false) +} + +func (honk *Honk) VeryPlain() string { + return honktoplain(honk, true) +} + +func honktoplain(honk *Honk, very bool) string { var plain []string var filt htfilter.Filter - filt.WithLinks = true + if !very { + filt.WithLinks = true + } if honk.Precis != "" { t, _ := filt.TextOnly(honk.Precis) plain = append(plain, t)