repair some logic differentiating local posts and bonks

This commit is contained in:
Ted Unangst 2019-12-13 20:23:53 -05:00
parent fdcfa4f13b
commit 87d0cabb67
1 changed files with 3 additions and 3 deletions

6
fun.go
View File

@ -63,10 +63,10 @@ func reverbolate(userid int64, honks []*Honk) {
} }
translate(h) translate(h)
local := false local := false
if (h.Whofore == 2 || h.Whofore == 3) && h.What != "bonked" { if h.Whofore == 2 || h.Whofore == 3 {
local = true local = true
} }
if local { if local && h.What != "bonked" {
h.Noise = re_memes.ReplaceAllString(h.Noise, "") h.Noise = re_memes.ReplaceAllString(h.Noise, "")
h.Noise = mentionize(h.Noise) h.Noise = mentionize(h.Noise)
h.Noise = ontologize(h.Noise) h.Noise = ontologize(h.Noise)
@ -131,7 +131,7 @@ func reverbolate(userid int64, honks []*Honk) {
} }
} }
} }
if local { if local && h.What != "bonked" {
var emu Emu var emu Emu
emucache.Get(e, &emu) emucache.Get(e, &emu)
if emu.ID != "" { if emu.ID != "" {