diff --git a/internal/web/base.go b/internal/web/base.go index d8eec3b90..5d19a3f70 100644 --- a/internal/web/base.go +++ b/internal/web/base.go @@ -107,7 +107,7 @@ func (m *Module) Route(s router.Router) error { s.AttachHandler(http.MethodGet, "/:user/statuses/:id", m.threadTemplateHandler) // serve email confirmation page at /confirm_email?token=whatever - s.AttachHandler(http.MethodGet, confirmEmailPath, m.ConfirmEmailGETHandler) + s.AttachHandler(http.MethodGet, confirmEmailPath, m.confirmEmailGETHandler) // 404 handler s.AttachNoRouteHandler(m.NotFoundHandler) diff --git a/internal/web/confirmemail.go b/internal/web/confirmemail.go index 566e30344..97ed597d3 100644 --- a/internal/web/confirmemail.go +++ b/internal/web/confirmemail.go @@ -25,7 +25,7 @@ import ( "github.com/sirupsen/logrus" ) -func (m *Module) ConfirmEmailGETHandler(c *gin.Context) { +func (m *Module) confirmEmailGETHandler(c *gin.Context) { // if there's no token in the query, just serve the 404 web handler token := c.Query(tokenParam) if token == "" {