all repos — honk @ f8ed8ae6cc3bbf4848f54b3bb913cbc4af0125a6

my fork of honk

a very plain text accessor that's helpful for debugging
Ted Unangst tedu@tedunangst.com
Fri, 25 Aug 2023 00:30:19 -0400
commit

f8ed8ae6cc3bbf4848f54b3bb913cbc4af0125a6

parent

e2a8d2d5b72f337dc815ed17423d5205a37ef736

1 files changed, 11 insertions(+), 1 deletions(-)

jump to
M database.godatabase.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)