relax incoming image restriction slightly
This commit is contained in:
parent
e38165aa52
commit
3a026f0c09
|
@ -572,8 +572,7 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
} else if at == "Document" || at == "Image" {
|
} else if at == "Document" || at == "Image" {
|
||||||
mt = strings.ToLower(mt)
|
mt = strings.ToLower(mt)
|
||||||
log.Printf("attachment: %s %s", mt, u)
|
log.Printf("attachment: %s %s", mt, u)
|
||||||
if mt == "image/jpeg" || mt == "image/png" ||
|
if mt == "text/plain" || strings.HasPrefix(mt, "image") {
|
||||||
mt == "text/plain" {
|
|
||||||
localize = true
|
localize = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue