all repos — honk @ 5adca6195f19ebd436633277020775b9e8edda59

my fork of honk

emuxify subjects too
Ted Unangst tedu@tedunangst.com
Wed, 18 Sep 2019 15:08:50 -0400
commit

5adca6195f19ebd436633277020775b9e8edda59

parent

e966ff86b302200bc68754ca53fc119c3d48ed9a

3 files changed, 6 insertions(+), 3 deletions(-)

jump to
M fun.gofun.go

@@ -67,6 +67,7 @@ if h.Oonker != "" {

_, h.Oondle = handles(h.Oonker) } zap := make(map[*Donk]bool) + h.Precis = unpucker(h.Precis) h.Noise = unpucker(h.Noise) h.Open = "open" if badword := unsee(zilences, h.Precis, h.Noise); badword != "" {

@@ -77,7 +78,7 @@ h.Open = ""

} else if h.Precis == "unspecified horror" { h.Precis = "" } - h.Precis = unpucker(h.Precis) + h.HTPrecis, _ = filt.String(h.Precis) h.HTML, _ = filt.String(h.Noise) emuxifier := func(e string) string { for _, d := range h.Donks {

@@ -90,6 +91,7 @@ }

} return e } + h.HTPrecis = template.HTML(re_emus.ReplaceAllStringFunc(string(h.HTPrecis), emuxifier)) h.HTML = template.HTML(re_emus.ReplaceAllStringFunc(string(h.HTML), emuxifier)) j := 0 for i := 0; i < len(h.Donks); i++ {
M honk.gohonk.go

@@ -55,6 +55,7 @@ Public bool

Whofore int64 Replies []*Honk Flags int64 + HTPrecis template.HTML HTML template.HTML Style string Open string
M views/honk.htmlviews/honk.html

@@ -39,8 +39,8 @@ {{ end }}

</header> <p> <details class="noise" {{ .Open }} > -<summary>{{ .Precis }}</summary> -<p>{{ .Precis }} +<summary>{{ .HTPrecis }}</summary> +<p>{{ .HTPrecis }} <p>{{ .HTML }} {{ range .Donks }} {{ if .Local }}