Skip to content

Commit 99d70e8

Browse files
authored
Merge pull request #35356 from nextcloud/backport/35206/stable24
[stable24] Fix forwarding the object id when searching comments
2 parents 6559526 + c892ba4 commit 99d70e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Comments/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ protected function getLastKnownComment(string $objectType,
602602
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
603603
$objectIds = [];
604604
if ($objectId) {
605-
$objectIds[] = $objectIds;
605+
$objectIds[] = $objectId;
606606
}
607607
return $this->searchForObjects($search, $objectType, $objectIds, $verb, $offset, $limit);
608608
}

0 commit comments

Comments
 (0)