preview after all fixups

This commit is contained in:
Ted Unangst 2019-09-18 15:30:39 -04:00
parent 961fbcbb3b
commit 1139c2886f
1 changed files with 4 additions and 7 deletions

11
web.go
View File

@ -1030,6 +1030,10 @@ func submithonk(w http.ResponseWriter, r *http.Request) {
} else { } else {
honk.Whofore = 3 honk.Whofore = 3
} }
// back to markdown
honk.Noise = noise
if r.FormValue("preview") == "preview" { if r.FormValue("preview") == "preview" {
honks := []*Honk{honk} honks := []*Honk{honk}
reverbolate(userinfo.UserID, honks) reverbolate(userinfo.UserID, honks)
@ -1046,13 +1050,6 @@ func submithonk(w http.ResponseWriter, r *http.Request) {
} }
return return
} }
honk.UserID = userinfo.UserID
honk.RID = rid
honk.Date = dt
honk.Convoy = convoy
// back to markdown
honk.Noise = noise
if updatexid != "" { if updatexid != "" {
updatehonk(honk) updatehonk(honk)