1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

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

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