if an emu doesn't have a type, make a png
This commit is contained in:
parent
a1445cb118
commit
5183a83124
|
@ -533,6 +533,9 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
|
||||||
if tt == "Emoji" {
|
if tt == "Emoji" {
|
||||||
icon, _ := jsongetmap(tag, "icon")
|
icon, _ := jsongetmap(tag, "icon")
|
||||||
mt, _ := jsongetstring(icon, "mediaType")
|
mt, _ := jsongetstring(icon, "mediaType")
|
||||||
|
if mt == "" {
|
||||||
|
mt = "image/png"
|
||||||
|
}
|
||||||
u, _ := jsongetstring(icon, "url")
|
u, _ := jsongetstring(icon, "url")
|
||||||
donk := savedonk(u, name, mt)
|
donk := savedonk(u, name, mt)
|
||||||
if donk != nil {
|
if donk != nil {
|
||||||
|
|
Loading…
Reference in New Issue