only replace memes in our posts

This commit is contained in:
Ted Unangst 2019-09-18 14:23:47 -04:00
parent d62486db27
commit 1b945c5cac
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -45,10 +45,10 @@ func reverbolate(userid int64, honks []*Honk) {
h.Style += " limited" h.Style += " limited"
} }
translate(h) translate(h)
h.Noise = re_memes.ReplaceAllString(h.Noise, "")
if h.Whofore == 2 || h.Whofore == 3 { if h.Whofore == 2 || h.Whofore == 3 {
h.URL = h.XID h.URL = h.XID
if h.What != "bonked" { if h.What != "bonked" {
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)
} }