Merge pull request #18 from tractorcow/pulls/api-save-comment-spam

API Enable comments to save spam status
This commit is contained in:
Sean Harvey 2015-03-24 12:26:52 +13:00
commit 4478e61390

View File

@ -10,6 +10,7 @@ class CommentSpamProtection extends Extension {
public function alterCommentForm(&$form) {
$form->enableSpamProtection(array(
'name' => 'IsSpam',
'mapping' => array(
'Name' => 'authorName',
'Email' => 'authorEmail',