all repos — honk @ 31e533b9bc375f7e307d01b898f0dde25e2e33e8

my fork of honk

assume media type jpeg for now
Ted Unangst tedu@tedunangst.com
Fri, 15 May 2020 00:22:36 -0400
commit

31e533b9bc375f7e307d01b898f0dde25e2e33e8

parent

c2932024935f705b0fc1ad03c1005141a0a8a2eb

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -745,6 +745,10 @@ localize := false

if numatts > 4 { log.Printf("excessive attachment: %s", at) } else if at == "Document" || at == "Image" { + if mt == "" { + log.Printf("assuming image media") + mt = "image/jpeg" + } mt = strings.ToLower(mt) log.Printf("attachment: %s %s", mt, u) if mt == "text/plain" || mt == "application/pdf" ||