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