all repos — honk @ 3d4e359fcf2735ea6bedcfbe51dd480fed3c53a0

my fork of honk

log excessive attachment separately
Ted Unangst tedu@tedunangst.com
Sat, 25 May 2019 14:34:46 -0400
commit

3d4e359fcf2735ea6bedcfbe51dd480fed3c53a0

parent

866a3b5bc49a92fbb13b795c7f581e16fdb7fb55

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

jump to
M activity.goactivity.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" ||