dkforest

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

commit 4fb4bd1c22731dfe6c5ac1b927116d918bec5165
parent 129e40c3f117634fb2c17b120de645344af520b5
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 11 Jan 2023 10:12:05 -0800

useless code

Diffstat:
Mpkg/web/handlers/handlers.go | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -2383,11 +2383,7 @@ func chatHandler(c echo.Context, redRoom bool) error { } if !room.HasAccess(c) { - if room.IsProtected() { - return c.Render(http.StatusOK, "chat-password", data) - } else { - return c.Redirect(http.StatusFound, "/chat") - } + return c.Render(http.StatusOK, "chat-password", data) } data.IsSubscribed = database.IsUserSubscribedToRoom(authUser.ID, room.ID)