aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-07-24 10:39:22 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-24 10:39:22 +0200
commit3b334169a89c3aa0ef9b6e173a3f9bc8ad2fe0cb (patch)
treed4c28906dc4626cb5a860bbf5ffebbf68993254d /lib/private/Comments
parent59d8c92b647118d2f883f74ea1674684b8c515aa (diff)
downloadnextcloud-server-3b334169a89c3aa0ef9b6e173a3f9bc8ad2fe0cb.tar.gz
nextcloud-server-3b334169a89c3aa0ef9b6e173a3f9bc8ad2fe0cb.zip
Get the topmost parent for the parent instead of doing endless recursion
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 309b682767b..5b256c379b6 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -159,7 +159,7 @@ class Manager implements ICommentsManager {
if ($comment->getParentId() === '0') {
return $comment->getId();
} else {
- return $this->determineTopmostParentId($comment->getId());
+ return $this->determineTopmostParentId($comment->getParentId());
}
}