From f763cfb53aab162cffaedcf916ffcc82231bed92 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 16 Jul 2021 20:57:11 +0100 Subject: [PATCH] announcements: fix [] on {{ .username }} --- email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email.go b/email.go index c0716fd..db4bc43 100644 --- a/email.go +++ b/email.go @@ -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 {