diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2019-07-24 11:50:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 11:50:40 +0200 |
commit | babe1333ad42cd95b973c2e72184658307f77e29 (patch) | |
tree | f00ad32831d57fc2ca0b7baf9805c6d284dc3c8d | |
parent | 59d8c92b647118d2f883f74ea1674684b8c515aa (diff) | |
parent | 7d3a349d8f906507212977ace8eb30164c69ec8e (diff) | |
download | nextcloud-server-babe1333ad42cd95b973c2e72184658307f77e29.tar.gz nextcloud-server-babe1333ad42cd95b973c2e72184658307f77e29.zip |
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
-rw-r--r-- | lib/private/Comments/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index 309b682767b..e54218509dc 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -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()); } /** |