Skip to content

Commit fe55ab7

Browse files
committed
fix(StorageService#getMounts): Exclude groupfolder trashbin
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 6ef0884 commit fe55ab7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Service/StorageService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ public function getMounts(): \Generator {
126126
$qb = $this->db->getQueryBuilder();
127127
$qb->selectDistinct(['root_id', 'storage_id', 'mount_provider_class']) // to avoid scanning each occurrence of a groupfolder
128128
->from('mounts')
129-
->where($qb->expr()->in('mount_provider_class', $qb->createPositionalParameter(self::ALLOWED_MOUNT_TYPES, IQueryBuilder::PARAM_STR_ARRAY)));
129+
->where($qb->expr()->in('mount_provider_class', $qb->createPositionalParameter(self::ALLOWED_MOUNT_TYPES, IQueryBuilder::PARAM_STR_ARRAY)))
130+
// Exclude groupfolder trashbin mounts
131+
->andWhere($qb->expr()->notLike('mount_point', $qb->createPositionalParameter('/%/files_trashbin/%')));
130132
$result = $qb->executeQuery();
131133

132134

0 commit comments

Comments
 (0)