X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fea5630ea4343b33c353afb41d502d535f674331..refs/pull/665/head:/app/Repos/CommentRepo.php diff --git a/app/Repos/CommentRepo.php b/app/Repos/CommentRepo.php index c3d7468cf..d8c57bdb3 100644 --- a/app/Repos/CommentRepo.php +++ b/app/Repos/CommentRepo.php @@ -80,7 +80,7 @@ class CommentRepo { */ protected function getNextLocalId(Entity $entity) { - $comments = $entity->comments()->orderBy('local_id', 'desc')->first(); + $comments = $entity->comments(false)->orderBy('local_id', 'desc')->first(); if ($comments === null) return 1; return $comments->local_id + 1; }