all repos — honk @ a24046c2b66578170f388df24a36a1791423ed19

my fork of honk

relax incoming image restriction slightly
Ted Unangst tedu@tedunangst.com
Thu, 27 Jun 2019 16:28:08 -0400
commit

a24046c2b66578170f388df24a36a1791423ed19

parent

d72ef03251895299faab5ac0843850f6805e8f81

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M activity.goactivity.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 {