better presentation for readded invisible content

This commit is contained in:
Ted Unangst 2023-07-30 20:39:31 -04:00
parent c57a52a90c
commit c44af76356
1 changed files with 4 additions and 4 deletions

8
fun.go
View File

@ -128,21 +128,21 @@ func reverbolate(userid int64, honks []*Honk) {
var misto string var misto string
for _, m := range h.Mentions { for _, m := range h.Mentions {
if m.Where != h.Honker && !m.IsPresent(h.Noise) { if m.Where != h.Honker && !m.IsPresent(h.Noise) {
misto += "(" + m.Who + ")" misto += " " + m.Who
} }
} }
var mistag string var mistag string
for _, o := range h.Onts { for _, o := range h.Onts {
if !OntIsPresent(o, h.Noise) { if !OntIsPresent(o, h.Noise) {
mistag += "(" + o + ")" mistag += " " + o
} }
} }
if len(misto) > 0 || len(mistag) > 0 { if len(misto) > 0 || len(mistag) > 0 {
if len(misto) > 0 { if len(misto) > 0 {
misto = misto + "<p>" misto = "(" + misto[1:] + ")<p>"
} }
if len(mistag) > 0 { if len(mistag) > 0 {
mistag = "<p>" + mistag mistag = "<p>(" + mistag[1:] + ")"
} }
h.Noise = misto + h.Noise + mistag h.Noise = misto + h.Noise + mistag
} }