if an emu doesn't have a type, make a png

This commit is contained in:
Ted Unangst 2019-04-25 14:18:33 -04:00
parent a1445cb118
commit 5183a83124
1 changed files with 3 additions and 0 deletions

View File

@ -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 {