From 2c85ef93dbc5911ae0d9aa96feb9db9d8661297e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zahradn=C3=ADk?= Date: Thu, 14 Mar 2024 16:25:49 +0100 Subject: [PATCH] list only questions in the selected channel --- web_ui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_ui.go b/web_ui.go index 062e67b..b76594c 100644 --- a/web_ui.go +++ b/web_ui.go @@ -174,6 +174,10 @@ func (w *webUI) handleQuestionList(ctx *gin.Context) { return err } + if q.Channel != ctx.Param("channel") { + return nil + } + questions = append(questions, q) return nil })