dkforest

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

commit 8be9832a11776cdff7080443436c7dc7e5bac243
parent 49c7831117293bee79baf659620284f3b55d279a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 12 Jun 2023 13:24:34 -0700

cleanup

Diffstat:
Mpkg/web/handlers/handlers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5023,7 +5023,7 @@ func ChessGameHandler(c echo.Context) error { return c.Redirect(http.StatusFound, c.Request().Referer()) } - isSpectator := authUser.ID != g.Player1.ID && authUser.ID != g.Player2.ID + isSpectator := !g.IsPlayer(authUser.ID) if isSpectator && c.QueryParam("r") != "" { isFlipped = true }