Skip to content

Commit

Permalink
list only questions in the selected channel
Browse files Browse the repository at this point in the history
  • Loading branch information
gardenerik committed Mar 14, 2024
1 parent f85ce18 commit 2c85ef9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 2c85ef9

Please sign in to comment.