Merge pull request #16524 from nextcloud/backport/16523/stable16

[stable16] Nested recursion breaking max nested level for parent comment calculation
This commit is contained in:
Morris Jobke 2019-07-24 15:14:29 +02:00 committed by GitHub
commit c9bf543cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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