From 3643600cab591286ec553575c85583b371c140e0 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Wed, 5 Jul 2023 11:01:10 -0400 Subject: [PATCH] rewrite relative links, linkify community bangs. fixes #9 --- routes.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes.go b/routes.go index 2f7c507..692a534 100644 --- a/routes.go +++ b/routes.go @@ -119,9 +119,13 @@ var funcMap = template.FuncMap{ converted := buf.String() converted = strings.Replace(converted, `!$1@$2 `) return template.HTML(converted) }, "contains": strings.Contains, @@ -830,6 +834,7 @@ func UserOp(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { post := types.EditPost{ PostID: postid, Body: types.NewOptional(r.FormValue("body")), + Name: types.NewOptional(r.FormValue("name")), URL: types.NewOptional(r.FormValue("url")), } if r.FormValue("url") == "" {