Get the topmost parent for the parent instead of doing endless recursion
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
59d8c92b64
commit
3b334169a8
|
@ -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…
Reference in New Issue