fix: re-add question comments
This commit is contained in:
@ -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)
|
||||
|
@ -9,4 +9,5 @@ type FilteredQuestion struct {
|
||||
AuthorName string
|
||||
AuthorURL string
|
||||
ShortenedBody string
|
||||
Comments []FilteredComment
|
||||
}
|
||||
|
Reference in New Issue
Block a user