diff --git a/code/controllers/CommentingController.php b/code/controllers/CommentingController.php index d2f6faa..ee1fb4c 100644 --- a/code/controllers/CommentingController.php +++ b/code/controllers/CommentingController.php @@ -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);