From 5183a831249fe21fb7343614e50034750bc471ac Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 25 Apr 2019 14:18:33 -0400 Subject: [PATCH] if an emu doesn't have a type, make a png --- activity.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activity.go b/activity.go index a6d6eca..0fc81c3 100644 --- a/activity.go +++ b/activity.go @@ -533,6 +533,9 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk { if tt == "Emoji" { icon, _ := jsongetmap(tag, "icon") mt, _ := jsongetstring(icon, "mediaType") + if mt == "" { + mt = "image/png" + } u, _ := jsongetstring(icon, "url") donk := savedonk(u, name, mt) if donk != nil {