mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-14 05:52:54 +00:00
fix: re-add question comments
This commit is contained in:
parent
572fac9ec3
commit
e6915ae849
3 changed files with 30 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue