From 4b493f2162d0346caff66e38c880bfb0d1e6deba Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 15 May 2020 00:22:36 -0400 Subject: [PATCH] assume media type jpeg for now --- activity.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activity.go b/activity.go index 905af10..d6d73c2 100644 --- a/activity.go +++ b/activity.go @@ -745,6 +745,10 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { if numatts > 4 { log.Printf("excessive attachment: %s", at) } else if at == "Document" || at == "Image" { + if mt == "" { + log.Printf("assuming image media") + mt = "image/jpeg" + } mt = strings.ToLower(mt) log.Printf("attachment: %s %s", mt, u) if mt == "text/plain" || mt == "application/pdf" ||