From bcc2c3fae7b975d8bf72037b260cf2162997df20 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 19 Apr 2017 12:25:59 -0400 Subject: [PATCH] inject prefix into thread template --- contrib/backends/srndv2/src/srnd/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/templates.go b/contrib/backends/srndv2/src/srnd/templates.go index 160751a..92f1e9f 100644 --- a/contrib/backends/srndv2/src/srnd/templates.go +++ b/contrib/backends/srndv2/src/srnd/templates.go @@ -303,7 +303,7 @@ func (self *templateEngine) genThread(allowFiles, requireCaptcha bool, root Arti self.renderJSON(wr, t) } else { form := renderPostForm(prefix, newsgroup, msgid, allowFiles, requireCaptcha) - self.writeTemplate("thread.mustache", map[string]interface{}{"thread": t, "board": map[string]interface{}{"Name": newsgroup, "Frontend": frontend, "AllowFiles": allowFiles}, "form": form}, wr) + self.writeTemplate("thread.mustache", map[string]interface{}{"thread": t, "board": map[string]interface{}{"Name": newsgroup, "Frontend": frontend, "AllowFiles": allowFiles}, "form": form, "prefix": prefix}, wr) } } else { log.Println("templates: error getting thread for ", msgid, err.Error())