comment_list.go: do not leak state if not mod

This commit is contained in:
Adhityaa 2018-06-07 13:10:15 +05:30
parent 0f2a6a8ccc
commit 2f93726a04

View File

@ -71,6 +71,10 @@ func commentList(commenterHex string, domain string, path string, includeUnappro
}
}
if !includeUnapproved {
c.State = ""
}
comments = append(comments, c)
if _, ok := commenters[c.CommenterHex]; !ok {