dkforest

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

commit 3b6cae3be0f332493df5aa5783902254cd94dce1
parent 230d30524699b80a5e40289343893551413a11ac
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 22 Feb 2025 07:57:35 -0800

ensure authUser is not nil

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

diff --git a/pkg/web/middlewares/middlewares.go b/pkg/web/middlewares/middlewares.go @@ -38,7 +38,7 @@ func GzipMiddleware(next echo.HandlerFunc) echo.HandlerFunc { c.Path() == "/poker/:roomID/bet" || c.Path() == "/api/v1/chat/messages/:roomName/stream" || c.Path() == "/api/v1/chat/messages/:roomName/stream/menu" || - (c.Path() == "/api/v1/chat/top-bar/:roomName" && authUser.UseStreamTopBar) || + (c.Path() == "/api/v1/chat/top-bar/:roomName" && authUser != nil && authUser.UseStreamTopBar) || c.Path() == "/uploads/:filename" || c.Path() == "/" { return true