From 3a026f0c09b9930c603e5f8b96f341e22770be0d Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 27 Jun 2019 16:28:08 -0400 Subject: [PATCH] relax incoming image restriction slightly --- activity.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activity.go b/activity.go index c81c3bf..60c556d 100644 --- a/activity.go +++ b/activity.go @@ -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 {