From 68609c4387c6568fa28834be59be2d72400c3903 Mon Sep 17 00:00:00 2001 From: Solomon Victorino Date: Fri, 7 Jun 2024 12:38:42 -0600 Subject: [PATCH] fix: scrape answer comments --- src/routes/question.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/question.go b/src/routes/question.go index f4f99f3..b4c230c 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -250,6 +250,8 @@ func extractAnswersData(doc *goquery.Document, domain string) ([]types.FilteredA processedAnswerBody := utils.ProcessHTMLBody(answerBodyHTML) answer.Body = template.HTML(processedAnswerBody) + answer.Comments = utils.FindAndReturnComments(answerBodyHTML, domain, postLayout) + // Extract author information and timestamp. extractAnswerAuthorInfo(s, &answer, domain)