fix reply preview 500

This commit is contained in:
Ryan Stafford 2023-07-31 14:41:55 -04:00
parent 624b7e4847
commit a91b08547b

View file

@ -56,7 +56,7 @@ func init() {
)) ))
templates = make(map[string]*template.Template) templates = make(map[string]*template.Template)
if !*watch { if !*watch {
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html"} { for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html", "create_comment.html"} {
t := template.New(name).Funcs(funcMap) t := template.New(name).Funcs(funcMap)
glob, err := t.ParseGlob("templates/*") glob, err := t.ParseGlob("templates/*")
if err != nil { if err != nil {