assume media type jpeg for now

This commit is contained in:
Ted Unangst 2020-05-15 00:22:36 -04:00
parent 6be05df143
commit 4b493f2162
1 changed files with 4 additions and 0 deletions

View File

@ -745,6 +745,10 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
if numatts > 4 { if numatts > 4 {
log.Printf("excessive attachment: %s", at) log.Printf("excessive attachment: %s", at)
} else if at == "Document" || at == "Image" { } else if at == "Document" || at == "Image" {
if mt == "" {
log.Printf("assuming image media")
mt = "image/jpeg"
}
mt = strings.ToLower(mt) mt = strings.ToLower(mt)
log.Printf("attachment: %s %s", mt, u) log.Printf("attachment: %s %s", mt, u)
if mt == "text/plain" || mt == "application/pdf" || if mt == "text/plain" || mt == "application/pdf" ||