High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix incorrect HTTP resp code on public page. Fixes #772.
Kailash Nadh12b845ef97c2
diff --git a/cmd/public.go b/cmd/public.goindex 0a871c26..155e7a0c 100644--- a/cmd/public.go+++ b/cmd/public.go@@ -233,9 +233,8 @@ func handleOptinPage(c echo.Context) error {// There are no lists to confirm.if len(out.Lists) == 0 {- return c.Render(http.StatusInternalServerError, tplMessage,- makeMsgTpl(app.i18n.T("public.noSubTitle"), "",- app.i18n.Ts("public.noSubInfo")))+ return c.Render(http.StatusOK, tplMessage,+ makeMsgTpl(app.i18n.T("public.noSubTitle"), "", app.i18n.Ts("public.noSubInfo")))}// Confirm.