add an intake length limit
Ted Unangst tedu@tedunangst.com
Thu, 03 Oct 2019 00:23:46 -0400
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -769,6 +769,11 @@ if currenttid == "" {
currenttid = convoy } + if len(content) > 90001 { + log.Printf("content too long. truncating") + content = content[:90001] + } + // grab any inline imgs imgfilt := htfilter.New() imgfilt.Imager = inlineimgs