From 63b1e59b8305d7b3d052cd71cad5d32cc7fa1c17 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 30 Jul 2019 21:20:56 -0400 Subject: [PATCH] keep reply to during preview --- docs/changelog.txt | 2 ++ honk.go | 1 + views/honkform.html | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 24988c9..2dcfcce 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -2,6 +2,8 @@ changelog -- next ++ Keep reply to setting during preview. + + Increase max thread retrieval depth to 10. -- 0.7.6 diff --git a/honk.go b/honk.go index 8ef93ba..305a233 100644 --- a/honk.go +++ b/honk.go @@ -1089,6 +1089,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) { templinfo := getInfo(r) templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r) templinfo["Honks"] = honks + templinfo["InReplyTo"] = r.FormValue("rid") templinfo["Noise"] = r.FormValue("noise") templinfo["ServerMessage"] = "honk preview" err := readviews.Execute(w, "honkpage.html", templinfo) diff --git a/views/honkform.html b/views/honkform.html index f310ac4..7c45149 100644 --- a/views/honkform.html +++ b/views/honkform.html @@ -2,7 +2,7 @@