Formatting

This commit is contained in:
2025-10-31 12:00:43 +00:00
parent 5880d1ca43
commit 776ea53a66

View File

@@ -86,16 +86,14 @@ func (h *AccountMessageHandlers) SendPost(c *gin.Context) {
ctx["Error"] = "Could not send message." ctx["Error"] = "Could not send message."
ctx["Form"] = in ctx["Form"] = in
tmpl := templateHelpers.LoadTemplateFiles( tmpl := templateHelpers.LoadTemplateFiles("layout.html", "web/templates/account/messages/send.html")
"layout.html",
"web/templates/account/messages/send.html",
)
c.Status(http.StatusInternalServerError) c.Status(http.StatusInternalServerError)
if err := tmpl.ExecuteTemplate(c.Writer, "layout", ctx); err != nil { if err := tmpl.ExecuteTemplate(c.Writer, "layout", ctx); err != nil {
logging.Info("❌ Template render error: %v", err) logging.Info("❌ Template render error: %v", err)
c.String(http.StatusInternalServerError, "Error rendering send message page") c.String(http.StatusInternalServerError, "Error rendering send message page")
} }
return return
} }