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
This commit is contained in:
blizzz 2019-07-24 11:50:40 +02:00 committed by GitHub
commit babe1333ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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