all repos — honk @ df3bfebfee550ce8f851fc03c53c72c0da3b2176

my fork of honk

keep reply to during preview
Ted Unangst tedu@tedunangst.com
Tue, 30 Jul 2019 21:20:56 -0400
commit

df3bfebfee550ce8f851fc03c53c72c0da3b2176

parent

0124e0b58bb06315bb4efc5dfb17c9a62019d3dd

3 files changed, 4 insertions(+), 1 deletions(-)

jump to
M docs/changelog.txtdocs/changelog.txt

@@ -2,6 +2,8 @@ changelog

-- next ++ Keep reply to setting during preview. + + Increase max thread retrieval depth to 10. -- 0.7.6
M honk.gohonk.go

@@ -1089,6 +1089,7 @@ reverbolate(userinfo.UserID, honks)

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)
M views/honkform.htmlviews/honkform.html

@@ -2,7 +2,7 @@ <p id="honkformhost">

<button onclick="showhonkform(); return false"><a href="/newhonk">it's honking time</a></button> <form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" style="display: none"> <p> -in reply to: <input type="text" name="rid" id="ridinput" value="" autocomplete=off> +in reply to: <input type="text" name="rid" id="ridinput" value="{{ .InReplyTo }}" autocomplete=off> <input type="hidden" name="CSRF" value="{{ .HonkCSRF }}"> <p> <label id="donker">attach: <input onchange="updatedonker();" type="file" name="donk"><span></span></label>