From 4ea2dfdfb748271d4fd75762f964ed5a4f0d46e1 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 8 Sep 2023 13:54:01 +0100 Subject: [PATCH] accounts: fix announcements preview window since the "Announcement" template doesn't actually exist, finding it in the DB would fail, which is now ignored. --- api-messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-messages.go b/api-messages.go index 9973907..15e7f45 100644 --- a/api-messages.go +++ b/api-messages.go @@ -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