all repos — honk @ 6e229e99c7bdc26dd0f7cc6a0f891ae623da5b7d

my fork of honk

if an emu doesn't have a type, make a png
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 14:18:33 -0400
commit

6e229e99c7bdc26dd0f7cc6a0f891ae623da5b7d

parent

5202b8a97c238f4b3e971d8c32b3df2d1a840ecc

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -533,6 +533,9 @@ name, _ := jsongetstring(tag, "name")

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 {