log excessive attachment separately
Ted Unangst tedu@tedunangst.com
Sat, 25 May 2019 14:34:46 -0400
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -551,7 +551,9 @@ at, _ := jsongetstring(att, "type")
mt, _ := jsongetstring(att, "mediaType") u, _ := jsongetstring(att, "url") name, _ := jsongetstring(att, "name") - if i < 4 && (at == "Document" || at == "Image") { + if i > 4 { + log.Printf("excessive attachment: %s", at) + } else if at == "Document" || at == "Image" { mt = strings.ToLower(mt) log.Printf("attachment: %s %s", mt, u) if mt == "image/jpeg" || mt == "image/png" ||