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:
commit
babe1333ad
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