Skip to content

Commit 41b4cae

Browse files
authored
Merge pull request #35357 from nextcloud/backport/35206/stable23
[stable23] Fix forwarding the object id when searching comments
2 parents 81dbe70 + 4214458 commit 41b4cae

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
@@ -536,7 +536,7 @@ protected function getLastKnownComment(string $objectType,
536536
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
537537
$objectIds = [];
538538
if ($objectId) {
539-
$objectIds[] = $objectIds;
539+
$objectIds[] = $objectId;
540540
}
541541
return $this->searchForObjects($search, $objectType, $objectIds, $verb, $offset, $limit);
542542
}

0 commit comments

Comments
 (0)