]> source.dussan.org Git - nextcloud-server.git/commitdiff
Get the topmost parent for the parent instead of doing endless recursion
authorJoas Schilling <coding@schilljs.com>
Wed, 24 Jul 2019 08:39:22 +0000 (10:39 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 24 Jul 2019 09:51:22 +0000 (09:51 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Comments/Manager.php

index 309b682767b027b94b1c6b1faec77655172669bf..5b256c379b62b6ae068f4de03e7f7a240bb29500 100644 (file)
@@ -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());
                }
        }