From 8c569d27715148436c5b68c5ca0804ab924c6cff Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 18 May 2018 02:13:46 -0500 Subject: [PATCH] invoke img proxy on preview --- app/rest/api/rest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/rest/api/rest.go b/app/rest/api/rest.go index 84d7d63f..fac27feb 100644 --- a/app/rest/api/rest.go +++ b/app/rest/api/rest.go @@ -214,6 +214,7 @@ func (s *Rest) previewCommentCtrl(w http.ResponseWriter, r *http.Request) { //comment.Text = string(blackfriday.Run([]byte(comment.Text), // blackfriday.WithRenderer(bfchroma.NewRenderer(bfchroma.WithoutAutodetect())))) comment.Text = string(blackfriday.Run([]byte(comment.Text), blackfriday.WithExtensions(mdExt))) + comment.Text = s.ImageProxy.Convert(comment.Text) comment.Sanitize() render.HTML(w, r, comment.Text) }