Merge pull request #35354 from nextcloud/backport/35206/stable25

[stable25] Fix forwarding the object id when searching comments
This commit is contained in:
Joas Schilling 2022-11-23 14:26:57 +01:00 committed by GitHub
commit 6d566367a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,7 +605,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);
}