all repos — honk @ 017dbe18581d5fb50bed5a7461c04e14ae84f0eb

my fork of honk

repair some logic differentiating local posts and bonks
Ted Unangst tedu@tedunangst.com
Fri, 13 Dec 2019 20:23:53 -0500
commit

017dbe18581d5fb50bed5a7461c04e14ae84f0eb

parent

c079585ea4e90870df5c981ef1b35a2aaab95631

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

jump to
M fun.gofun.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 != "" {