feat!: proxy images with JWT auth

This commit is contained in:
httpjamesm 2023-02-02 19:05:08 -05:00
parent 7494b2df33
commit 5f11bcd6a2
No known key found for this signature in database
8 changed files with 151 additions and 2 deletions

View file

@ -93,7 +93,7 @@ func ViewQuestion(c *gin.Context) {
return
}
newFilteredQuestion.Body = template.HTML(questionBodyParentHTML)
newFilteredQuestion.Body = template.HTML(utils.ReplaceImgTags(questionBodyParentHTML))
questionBodyText := questionBodyParent.Text()
@ -234,7 +234,7 @@ func ViewQuestion(c *gin.Context) {
comments = utils.FindAndReturnComments(answerBodyHTML, postLayout)
newFilteredAnswer.Comments = comments
newFilteredAnswer.Body = template.HTML(answerBodyHTML)
newFilteredAnswer.Body = template.HTML(utils.ReplaceImgTags(answerBodyHTML))
answers = append(answers, newFilteredAnswer)
})