dkforest

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

commit 2b4aec93d60a45d5af0ea0e834915d5a7d21febf
parent 58398ce0f9766d3cb785088cb679b84268e3b367
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 20 Dec 2023 10:52:02 -0500

fix

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

diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go @@ -336,8 +336,9 @@ func PokerStreamHandler(c echo.Context) error { } chatRoomSlug := "general" - if _, err := db.GetChatRoomByName(strings.ReplaceAll(roomID.String(), "-", "_")); err == nil { - chatRoomSlug = roomID.String() + tmp := strings.ReplaceAll(roomID.String(), "-", "_") + if _, err := db.GetChatRoomByName(tmp); err == nil { + chatRoomSlug = tmp } roomTopic := roomID.Topic()