mirror of
https://gitlab.com/commento/commento.git
synced 2026-06-17 09:55:27 -04:00
comment_list.go: do not leak state if not mod
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user