fix: re-add question comments

This commit is contained in:
httpjamesm 2022-12-29 13:11:33 -05:00
parent 572fac9ec3
commit e6915ae849
3 changed files with 30 additions and 0 deletions

View file

@ -74,6 +74,7 @@ func ViewQuestion(c *gin.Context) {
newFilteredQuestion.ShortenedBody = shortenedBody
comments := utils.FindAndReturnComments(questionBodyParentHTML, questionPostLayout)
newFilteredQuestion.Comments = comments
// parse any code blocks and highlight them
answerCodeBlocks := questionCodeBlockRegex.FindAllString(questionBodyParentHTML, -1)