Archived
1
0

inject prefix into thread template

This commit is contained in:
Jeff Becker 2017-04-19 12:25:59 -04:00
parent 04a3bb2c39
commit bcc2c3fae7

View File

@ -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())