From 215f24cd53e77125995adee8e8c44f8e60e08c39 Mon Sep 17 00:00:00 2001 From: Solomon Date: Fri, 7 Jun 2024 19:50:33 +0000 Subject: [PATCH] fix: scrape answer comments (#128) --- 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)