Merge pull request #16523 from nextcloud/bugfix/noid/nested-recursion-breaking-max-nested-level-for-parent-comment

Nested recursion breaking max nested level for parent comment calculation
pull/16528/head
blizzz 2019-07-24 11:50:40 +07:00 committed by GitHub
commit babe1333ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -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());
}
/**