markdown and emus in subject. naturally.

This commit is contained in:
Ted Unangst 2019-10-30 17:14:27 -04:00
parent a06cd066c9
commit 5604522c54
2 changed files with 2 additions and 5 deletions

2
fun.go
View File

@ -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)

5
web.go
View File

@ -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 {