dkforest

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

commit 5d39d5207b44bb4d0d241530a3e47e16ff6f52a3
parent 6bfcc592a645b9d2f66daf1051de1d1b7bed1aa4
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 24 May 2023 07:16:49 -0700

cleanup

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

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5003,9 +5003,7 @@ func ChatStreamMessagesHandler(c echo.Context) error { _, _ = c.Response().Write([]byte("<div>" + v1.RenderMessages(authUser, data, csrf, config.NullUsername) + "</div>")) c.Response().Flush() - authorizedChannels := make([]string, 0) - authorizedChannels = append(authorizedChannels, "refresh") - authorizedChannels = append(authorizedChannels, "room_"+room.ID.String()) + authorizedChannels := []string{"refresh", "room_" + room.ID.String()} sub := database.MsgPubSub.Subscribe(authorizedChannels) defer sub.Close()