diff options
author | Joas Schilling <coding@schilljs.com> | 2022-11-16 12:07:46 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-11-23 10:42:25 +0000 |
commit | c892ba43d1a62897749c7f23a95fde7e93dd0ee3 (patch) | |
tree | bcf45638ce7e9c9cb99dea835d837c0d05d51ec8 /lib | |
parent | 69d59d3f663343e62788c0aa85f89ed54cd1d5de (diff) | |
download | nextcloud-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.php | 2 |
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); } |