aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-11-16 12:07:46 +0100
committerJoas Schilling <coding@schilljs.com>2022-11-16 12:08:34 +0100
commit3f4fed35504548801230e49d050c758209fa0368 (patch)
treea04d08a046bf40bc9af27e2097463997914ac0b9
parent62919ac81eb856a15c0131f3cf948bb11b2a5b1f (diff)
downloadnextcloud-server-3f4fed35504548801230e49d050c758209fa0368.tar.gz
nextcloud-server-3f4fed35504548801230e49d050c758209fa0368.zip
Fix forwarding the object id when searching comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Comments/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 53603e51e56..3eb9aab6817 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -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);
}