diff --git a/code/dataobjects/Comment.php b/code/dataobjects/Comment.php index 40a72e0..d2cad8a 100755 --- a/code/dataobjects/Comment.php +++ b/code/dataobjects/Comment.php @@ -75,6 +75,7 @@ class Comment extends DataObject { // set the variables which have changed $comment->BaseClass = 'SiteTree'; $comment->URL = (isset($pageComment['CommenterURL'])) ? $pageComment['CommenterURL'] : ""; + if((int)$pageComment['NeedsModeration'] == 0) $comment->Moderated = true; $comment->write(); }