mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-14 05:52:54 +00:00
feat: version and back button
This commit is contained in:
parent
3398ba637b
commit
504144c94b
6 changed files with 43 additions and 8 deletions
|
@ -141,10 +141,10 @@ func ViewQuestion(c *gin.Context) {
|
|||
answers = append(answers, template.HTML(answerBodyHTML))
|
||||
})
|
||||
|
||||
imagePolicy := "https:"
|
||||
imagePolicy := "'self' https:"
|
||||
|
||||
if c.MustGet("disable_images").(bool) {
|
||||
imagePolicy = "'none'"
|
||||
imagePolicy = "'self'"
|
||||
}
|
||||
|
||||
c.HTML(200, "question.html", gin.H{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue