Fix incorrect HTTP resp code on public page. Fixes #772.

This commit is contained in:
Kailash Nadh 2022-05-03 10:49:25 +05:30
parent 89eca5f14b
commit 12b845ef97

View file

@ -233,9 +233,8 @@ func handleOptinPage(c echo.Context) error {
// There are no lists to confirm. // There are no lists to confirm.
if len(out.Lists) == 0 { if len(out.Lists) == 0 {
return c.Render(http.StatusInternalServerError, tplMessage, return c.Render(http.StatusOK, tplMessage,
makeMsgTpl(app.i18n.T("public.noSubTitle"), "", makeMsgTpl(app.i18n.T("public.noSubTitle"), "", app.i18n.Ts("public.noSubInfo")))
app.i18n.Ts("public.noSubInfo")))
} }
// Confirm. // Confirm.