if an emu doesn't have a type, make a png
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 14:18:33 -0400
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.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 {