X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3c26e7b72758302016545eeb4f780833c9b550df..refs/pull/2515/head:/app/Actions/CommentRepo.php diff --git a/app/Actions/CommentRepo.php b/app/Actions/CommentRepo.php index 0d8a12ce9..13a83e7fd 100644 --- a/app/Actions/CommentRepo.php +++ b/app/Actions/CommentRepo.php @@ -1,7 +1,8 @@ parent_id = $parent_id; $entity->comments()->save($comment); + ActivityService::addForEntity($entity, ActivityType::COMMENTED_ON); return $comment; } @@ -70,7 +72,7 @@ class CommentRepo /** * Convert the given comment markdown text to HTML. */ - protected function commentToHtml(string $commentText): string + public function commentToHtml(string $commentText): string { $converter = new CommonMarkConverter([ 'html_input' => 'strip',