comment_new.go: use RequireModeration in anonymous clause
This commit is contained in:
parent
619231e32f
commit
7fc3910009
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user