From ce19cb8842ab4bfb94b985e3d7ac91581ad6efa1 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 15 May 2019 10:45:01 -0700 Subject: [PATCH] comment_list.go: do not include markdown in most responses --- api/comment_list.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/comment_list.go b/api/comment_list.go index f451d08..353f5ec 100644 --- a/api/comment_list.go +++ b/api/comment_list.go @@ -84,6 +84,10 @@ func commentList(commenterHex string, domain string, path string, includeUnappro } } + if commenterHex != c.CommenterHex { + c.Markdown = "" + } + if !includeUnapproved { c.State = "" }