Merge 3b321bcabc
into 50ff534ef3
This commit is contained in:
commit
4c16ffc185
|
@ -369,6 +369,9 @@ class CommentingController extends Controller {
|
|||
|
||||
$comment->Moderated = ($moderated) ? false : true;
|
||||
$comment->write();
|
||||
|
||||
// extend hook to allow extensions. Also see onBeforePostComment
|
||||
$this->extend('onAfterPostComment', $comment);
|
||||
|
||||
// clear the users comment since it passed validation
|
||||
Cookie::set('CommentsForm_Comment', false);
|
||||
|
|
Loading…
Reference in New Issue