mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-14 05:52:54 +00:00
feat!: proxy images with JWT auth
This commit is contained in:
parent
7494b2df33
commit
5f11bcd6a2
8 changed files with 151 additions and 2 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue