mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
announcements: fix [] on {{ .username }}
This commit is contained in:
2
email.go
2
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 {
|
||||
|
||||
Reference in New Issue
Block a user