Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix nil tpl when campaign body is empty. Closes #1085.

Kailash Nadha555fd38763b
diff --git a/models/models.go b/models/models.go
index 6950d65b..ff706838 100644
--- a/models/models.go
+++ b/models/models.go
@@ -493,11 +493,6 @@ func (c *Campaign) CompileTemplate(f template.FuncMap) error {
c.SubjectTpl = subjTpl
}
- // No template or body. Nothing to compile.
- if c.TemplateBody == "" || c.Body == "" {
- return nil
- }
-
// Compile the base template.
body := c.TemplateBody
for _, r := range regTplFuncs {