dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 944656e5aa16ee393db753ff9e4277072cc221ea
parent ee3ef9da627d62ff7e546cc5efbcf3acfbecf2ab
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 11 Jun 2023 22:05:27 -0700

cleanup

Diffstat:
Mpkg/web/handlers/handlers.go | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -4927,14 +4927,13 @@ func chessGameEnPassant(g *interceptors.ChessGame) { func ChessGameFormHandler(c echo.Context) error { key := c.Param("key") - out := cssReset - out += interceptors.ChessCSS + csrf, _ := c.Get("csrf").(string) authUser := c.Get("authUser").(*database.User) g := interceptors.ChessInstance.GetGame(key) isFlipped := authUser.ID == g.Player2.ID - csrf, _ := c.Get("csrf").(string) - + out := cssReset + out += interceptors.ChessCSS out += `<form method="post" action="/chess/` + key + `"> <table class="newBoard">` for row := 0; row < 8; row++ {