Merge pull request #28531 from nextcloud/backport/28478/stable22

This commit is contained in:
John Molakvoæ 2021-09-16 20:22:08 +02:00 committed by GitHub
commit 74b009eac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -656,7 +656,7 @@ class Manager implements ICommentsManager {
$unreadComments = array_fill_keys($objectIds, 0);
foreach (array_chunk($objectIds, 1000) as $chunk) {
$query->setParameter('ids', $chunk, IQueryBuilder::PARAM_INT_ARRAY);
$query->setParameter('ids', $chunk, IQueryBuilder::PARAM_STR_ARRAY);
$result = $query->executeQuery();
while ($row = $result->fetch()) {