diff --git a/activity.go b/activity.go index 4ac6e27..4935a95 100644 --- a/activity.go +++ b/activity.go @@ -1013,10 +1013,10 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { if !h.Public { jo["directMessage"] = true } + mentions := bunchofgrapes(h.Noise) translate(h, true) - h.Noise = re_memes.ReplaceAllString(h.Noise, "") jo["summary"] = html.EscapeString(h.Precis) - jo["content"] = ontologize(mentionize(h.Noise)) + jo["content"] = h.Noise if strings.HasPrefix(h.Precis, "DZ:") { jo["sensitive"] = true } @@ -1034,7 +1034,7 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { } var tags []junk.Junk - for _, m := range bunchofgrapes(h.Noise) { + for _, m := range mentions { t := junk.New() t["type"] = "Mention" t["name"] = m.who diff --git a/fun.go b/fun.go index 60a7708..8f04fba 100644 --- a/fun.go +++ b/fun.go @@ -220,7 +220,6 @@ func translate(honk *Honk, redoimages bool) { n, _ := htf.String(honk.Noise) honk.Precis = string(p) honk.Noise = string(n) - honk.Noise = strings.Replace(honk.Noise, "