relax incoming image restriction slightly
Ted Unangst tedu@tedunangst.com
Thu, 27 Jun 2019 16:28:08 -0400
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -572,8 +572,7 @@ 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" || - mt == "text/plain" { + if mt == "text/plain" || strings.HasPrefix(mt, "image") { localize = true } } else {