]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix forwarding the object id when searching comments 35356/head
authorJoas Schilling <coding@schilljs.com>
Wed, 16 Nov 2022 11:07:46 +0000 (12:07 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 23 Nov 2022 10:42:25 +0000 (10:42 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Comments/Manager.php

index aca0cd9c6d82bb5379995d8445c195ce563a1427..4d7687617bc734795866afe73fc89ca14a922ad9 100644 (file)
@@ -602,7 +602,7 @@ class Manager implements ICommentsManager {
        public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
                $objectIds = [];
                if ($objectId) {
-                       $objectIds[] = $objectIds;
+                       $objectIds[] = $objectId;
                }
                return $this->searchForObjects($search, $objectType, $objectIds, $verb, $offset, $limit);
        }