]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/CommentRepo.php
Fixed failing test after drawio default url change
[bookstack] / app / Actions / CommentRepo.php
index 8061c4542e7a86fe2f4d080677e1b1300bfd7372..2f2dd658a3c754294e8e45735ba183c5e2cc4d55 100644 (file)
@@ -45,7 +45,7 @@ class CommentRepo
         $comment->parent_id = $parent_id;
 
         $entity->comments()->save($comment);
-        ActivityService::addForEntity($entity, ActivityType::COMMENTED_ON);
+        ActivityService::add(ActivityType::COMMENTED_ON, $entity);
 
         return $comment;
     }