comment_new.go: use RequireModeration in anonymous clause

This commit is contained in:
Adhityaa Chandrasekar 2019-02-18 11:05:34 -05:00
parent 619231e32f
commit 7fc3910009

View File

@ -94,7 +94,7 @@ func commentNewHandler(w http.ResponseWriter, r *http.Request) {
if isSpam(*x.Domain, getIp(r), getUserAgent(r), "Anonymous", "", "", *x.Markdown) { if isSpam(*x.Domain, getIp(r), getUserAgent(r), "Anonymous", "", "", *x.Markdown) {
state = "flagged" state = "flagged"
} else { } else {
if d.ModerateAllAnonymous { if d.ModerateAllAnonymous || d.RequireModeration {
state = "unapproved" state = "unapproved"
} else { } else {
state = "approved" state = "approved"