add an intake length limit

This commit is contained in:
Ted Unangst 2019-10-03 00:23:46 -04:00
parent 4fdc81cbed
commit e98366ccb7
1 changed files with 5 additions and 0 deletions

View File

@ -769,6 +769,11 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
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