relax incoming image restriction slightly

This commit is contained in:
Ted Unangst 2019-06-27 16:28:08 -04:00
parent e38165aa52
commit 3a026f0c09
1 changed files with 1 additions and 2 deletions

View File

@ -572,8 +572,7 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
} else if at == "Document" || at == "Image" {
mt = strings.ToLower(mt)
log.Printf("attachment: %s %s", mt, u)
if mt == "image/jpeg" || mt == "image/png" ||
mt == "text/plain" {
if mt == "text/plain" || strings.HasPrefix(mt, "image") {
localize = true
}
} else {