only inline emus we actually have

This commit is contained in:
Ted Unangst 2019-07-08 20:58:47 -04:00
parent 6051a54796
commit 29da0f3cdf

2
fun.go
View file

@ -76,9 +76,11 @@ func reverbolate(honks []*Honk) {
for _, d := range h.Donks {
if d.Name == e {
zap[d] = true
if d.Local {
return fmt.Sprintf(`<img class="emu" title="%s" src="/d/%s">`, d.Name, d.XID)
}
}
}
return e
}
h.HTML = template.HTML(re_emus.ReplaceAllStringFunc(string(h.HTML), emuxifier))