Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Get the topmost parent for the parent instead of doing endless recursion
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 24, 2019
commit 3b334169a89c3aa0ef9b6e173a3f9bc8ad2fe0cb
2 changes: 1 addition & 1 deletion lib/private/Comments/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected function determineTopmostParentId($id) {
if ($comment->getParentId() === '0') {
return $comment->getId();
} else {
return $this->determineTopmostParentId($comment->getId());
return $this->determineTopmostParentId($comment->getParentId());
}
}

Expand Down