From c40d120b0d281b711b8d1f7ff790ca9b314cab4c Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 23 Mar 2015 17:22:13 +1300 Subject: [PATCH] API Enable comments to save spam status --- code/extensions/CommentSpamProtection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/extensions/CommentSpamProtection.php b/code/extensions/CommentSpamProtection.php index 18eabb5..24b2afb 100644 --- a/code/extensions/CommentSpamProtection.php +++ b/code/extensions/CommentSpamProtection.php @@ -10,6 +10,7 @@ class CommentSpamProtection extends Extension { public function alterCommentForm(&$form) { $form->enableSpamProtection(array( + 'name' => 'IsSpam', 'mapping' => array( 'Name' => 'authorName', 'Email' => 'authorEmail',