X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c157dc3490c39aa236e22714019a649ebeb11f13..refs/pull/2393/head:/app/Actions/CommentRepo.php diff --git a/app/Actions/CommentRepo.php b/app/Actions/CommentRepo.php index c0f008137..13a83e7fd 100644 --- a/app/Actions/CommentRepo.php +++ b/app/Actions/CommentRepo.php @@ -1,7 +1,8 @@ parent_id = $parent_id; $entity->comments()->save($comment); - Activity::add($entity, ActivityType::COMMENTED_ON, $entity->book->id); + ActivityService::addForEntity($entity, ActivityType::COMMENTED_ON); return $comment; }