announcements: fix [] on {{ .username }}

This commit is contained in:
Harvey Tindall 2021-07-16 20:57:11 +01:00
parent 25a8d3807e
commit f763cfb53a
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ func (emailer *Emailer) constructTemplate(subject, md string, app *appContext, u
"md": md,
}
if len(username) != 0 {
data["username"] = username
data["username"] = username[0]
}
email.HTML, email.Text, email.Markdown, err = emailer.construct(app, "template_email", "email_", data)
if err != nil {