comment_list.go: do not leak state if not mod
This commit is contained in:
parent
0f2a6a8ccc
commit
2f93726a04
@ -71,6 +71,10 @@ func commentList(commenterHex string, domain string, path string, includeUnappro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !includeUnapproved {
|
||||||
|
c.State = ""
|
||||||
|
}
|
||||||
|
|
||||||
comments = append(comments, c)
|
comments = append(comments, c)
|
||||||
|
|
||||||
if _, ok := commenters[c.CommenterHex]; !ok {
|
if _, ok := commenters[c.CommenterHex]; !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user