This commit is contained in:
Gordon Anderson 2012-11-28 03:24:07 -08:00
commit 4c16ffc185
1 changed files with 3 additions and 0 deletions

View File

@ -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);