don't save large attachments that sneak in
Ted Unangst tedu@tedunangst.com
Thu, 04 Jul 2019 18:47:45 -0400
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -180,6 +180,10 @@ goto saveit
} data = img.Data media = "image/" + img.Format + } else if len(data) > 100000 { + log.Printf("not saving large attachment") + localize = false + data = []byte{} } } saveit: