From 7fc3910009fc275f91c5965a58368a1776036a99 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Mon, 18 Feb 2019 11:05:34 -0500 Subject: [PATCH] comment_new.go: use RequireModeration in anonymous clause --- api/comment_new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comment_new.go b/api/comment_new.go index 3ee7a06..e0e5192 100644 --- a/api/comment_new.go +++ b/api/comment_new.go @@ -94,7 +94,7 @@ func commentNewHandler(w http.ResponseWriter, r *http.Request) { if isSpam(*x.Domain, getIp(r), getUserAgent(r), "Anonymous", "", "", *x.Markdown) { state = "flagged" } else { - if d.ModerateAllAnonymous { + if d.ModerateAllAnonymous || d.RequireModeration { state = "unapproved" } else { state = "approved"