Browse Source
perf(shares): All talk shares are of item type file or folder
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/15624/head
Joas Schilling
3 months ago
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with
1 additions and
5 deletions
-
lib/Share/RoomShareProvider.php
|
|
|
@ -826,11 +826,7 @@ class RoomShareProvider implements IShareProvider { |
|
|
|
->andWhere($qb->expr()->in('s.share_with', $qb->createNamedParameter( |
|
|
|
$rooms, |
|
|
|
IQueryBuilder::PARAM_STR_ARRAY |
|
|
|
))) |
|
|
|
->andWhere($qb->expr()->orX( |
|
|
|
$qb->expr()->eq('s.item_type', $qb->createNamedParameter('file')), |
|
|
|
$qb->expr()->eq('s.item_type', $qb->createNamedParameter('folder')) |
|
|
|
)); |
|
|
|
))); |
|
|
|
|
|
|
|
$cursor = $qb->executeQuery(); |
|
|
|
while ($data = $cursor->fetch()) { |
|
|
|
|