accounts: fix announcements preview window

since the "Announcement" template doesn't actually exist, finding it in
the DB would fail, which is now ignored.
This commit is contained in:
Harvey Tindall 2023-09-08 13:54:01 +01:00
parent d8d478a95e
commit 4ea2dfdfb7
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func (app *appContext) GetCustomMessageTemplate(gc *gin.Context) {
username := app.storage.lang.Email[lang].Strings.get("username")
emailAddress := app.storage.lang.Email[lang].Strings.get("emailAddress")
customMessage, ok := app.storage.GetCustomContentKey(id)
if !ok {
if !ok && id != "Announcement" {
app.err.Printf("Failed to get custom message with ID \"%s\"", id)
respondBool(400, false, gc)
return