repair some logic differentiating local posts and bonks
Ted Unangst tedu@tedunangst.com
Fri, 13 Dec 2019 20:23:53 -0500
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -63,10 +63,10 @@ h.Style += " limited"
} translate(h) local := false - if (h.Whofore == 2 || h.Whofore == 3) && h.What != "bonked" { + if h.Whofore == 2 || h.Whofore == 3 { local = true } - if local { + if local && h.What != "bonked" { h.Noise = re_memes.ReplaceAllString(h.Noise, "") h.Noise = mentionize(h.Noise) h.Noise = ontologize(h.Noise)@@ -131,7 +131,7 @@ return fmt.Sprintf(`<img class="emu" title="%s" src="/d/%s">`, d.Name, d.XID)
} } } - if local { + if local && h.What != "bonked" { var emu Emu emucache.Get(e, &emu) if emu.ID != "" {