mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #18 from tractorcow/pulls/api-save-comment-spam
API Enable comments to save spam status
This commit is contained in:
commit
4478e61390
@ -10,6 +10,7 @@ class CommentSpamProtection extends Extension {
|
||||
|
||||
public function alterCommentForm(&$form) {
|
||||
$form->enableSpamProtection(array(
|
||||
'name' => 'IsSpam',
|
||||
'mapping' => array(
|
||||
'Name' => 'authorName',
|
||||
'Email' => 'authorEmail',
|
||||
|
Loading…
Reference in New Issue
Block a user