From 5604522c54e0e73c60b2e9202a7eeabac0952a13 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 30 Oct 2019 17:14:27 -0400 Subject: [PATCH] markdown and emus in subject. naturally. --- fun.go | 2 +- web.go | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fun.go b/fun.go index 273fc1e..2983fd4 100644 --- a/fun.go +++ b/fun.go @@ -201,7 +201,7 @@ func translate(honk *Honk, redoimages bool) { noise = noise[idx+1:] } } - honk.Precis = strings.TrimSpace(honk.Precis) + honk.Precis = markitzero(strings.TrimSpace(honk.Precis)) noise = strings.TrimSpace(noise) noise = quickrename(noise, honk.UserID) diff --git a/web.go b/web.go index 49569a9..470dfd8 100644 --- a/web.go +++ b/web.go @@ -1150,9 +1150,6 @@ func edithonkpage(w http.ResponseWriter, r *http.Request) { } noise := honk.Noise - if honk.Precis != "" { - noise = honk.Precis + "\n\n" + noise - } honks := []*Honk{honk} donksforhonks(honks) @@ -1360,7 +1357,7 @@ func submithonk(w http.ResponseWriter, r *http.Request) { log.Printf("can't find file: %s", xid) } } - herd := herdofemus(honk.Noise) + herd := herdofemus(noise) for _, e := range herd { donk := savedonk(e.ID, e.Name, e.Name, "image/png", true) if donk != nil {