diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index 309b682767..e54218509d 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -158,9 +158,9 @@ class Manager implements ICommentsManager { $comment = $this->get($id); if ($comment->getParentId() === '0') { return $comment->getId(); - } else { - return $this->determineTopmostParentId($comment->getId()); } + + return $this->determineTopmostParentId($comment->getParentId()); } /**