Get the topmost parent for the parent instead of doing endless recursion

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/16523/head
Joas Schilling 7 years ago
parent 59d8c92b64
commit 3b334169a8
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      lib/private/Comments/Manager.php

@ -159,7 +159,7 @@ class Manager implements ICommentsManager {
if ($comment->getParentId() === '0') {
return $comment->getId();
} else {
return $this->determineTopmostParentId($comment->getId());
return $this->determineTopmostParentId($comment->getParentId());
}
}

Loading…
Cancel
Save