Fix forwarding the object id when searching comments

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/35206/head
Joas Schilling 2022-11-16 12:07:46 +07:00
parent 62919ac81e
commit 3f4fed3550
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 1 additions and 1 deletions

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