cleanup; fix stripping with DEBUG=on

This commit is contained in:
Harvey Tindall
2021-05-16 15:00:13 +01:00
parent beb0712ce9
commit 33f8070e57
5 changed files with 74 additions and 417 deletions
+2 -3
View File
@@ -215,9 +215,8 @@ func (emailer *Emailer) construct(app *appContext, section, keyFragment string,
}
var keys []string
plaintext := app.config.Section("email").Key("plaintext").MustBool(false)
telegram := app.config.Section("telegram").Key("enabled").MustBool(false)
if plaintext {
if telegram {
if telegramEnabled {
keys = []string{"text"}
text, markdown = "", ""
} else {
@@ -225,7 +224,7 @@ func (emailer *Emailer) construct(app *appContext, section, keyFragment string,
text = ""
}
} else {
if telegram {
if telegramEnabled {
keys = []string{"html", "text", "markdown"}
} else {
keys = []string{"html", "text"}