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:
commit
c9bf543cd4
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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue