all repos — honk @ 9b0730666ce1b53829344d7467d39e7edf894733

my fork of honk

replace emoji after html filtering
Ted Unangst tedu@tedunangst.com
Sun, 26 Jul 2020 16:25:28 -0400
commit

9b0730666ce1b53829344d7467d39e7edf894733

parent

c8ad8826e2134305cf3102c4c9c8aae7337e172d

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M fun.gofun.go

@@ -188,6 +188,9 @@ noise = markitzero(noise)

local = true } + ch.HTML, _ = htf.String(noise) + noise = string(ch.HTML) + zap := make(map[string]bool) emuxifier := func(e string) string { for _, d := range ch.Donks {

@@ -217,12 +220,10 @@ }

} ch.Donks = ch.Donks[:j] - ch.HTML, _ = htf.String(noise) - n := string(ch.HTML) - - if strings.HasPrefix(n, "<p>") { - ch.HTML = template.HTML(n[3:]) + if strings.HasPrefix(noise, "<p>") { + noise = noise[3:] } + ch.HTML = template.HTML(noise) if short := shortname(ch.UserID, ch.Who); short != "" { ch.Handle = short } else {