From 1139c2886ff8b62b80cc045f48a39f8eb80788bc Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 18 Sep 2019 15:30:39 -0400 Subject: [PATCH] preview after all fixups --- web.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/web.go b/web.go index ff64ba4..c2c2272 100644 --- a/web.go +++ b/web.go @@ -1030,6 +1030,10 @@ func submithonk(w http.ResponseWriter, r *http.Request) { } else { honk.Whofore = 3 } + + // back to markdown + honk.Noise = noise + if r.FormValue("preview") == "preview" { honks := []*Honk{honk} reverbolate(userinfo.UserID, honks) @@ -1046,13 +1050,6 @@ func submithonk(w http.ResponseWriter, r *http.Request) { } return } - honk.UserID = userinfo.UserID - honk.RID = rid - honk.Date = dt - honk.Convoy = convoy - - // back to markdown - honk.Noise = noise if updatexid != "" { updatehonk(honk)