summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-11-16 12:07:46 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-11-23 10:42:25 +0000
commitc892ba43d1a62897749c7f23a95fde7e93dd0ee3 (patch)
treebcf45638ce7e9c9cb99dea835d837c0d05d51ec8 /lib
parent69d59d3f663343e62788c0aa85f89ed54cd1d5de (diff)
downloadnextcloud-server-c892ba43d1a62897749c7f23a95fde7e93dd0ee3.tar.gz
nextcloud-server-c892ba43d1a62897749c7f23a95fde7e93dd0ee3.zip
Fix forwarding the object id when searching comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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 aca0cd9c6d8..4d7687617bc 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -602,7 +602,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);
}