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
|
@ -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 New Issue