summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-03-07 11:59:53 +0100
committerRobin Appelman <robin@icewind.nl>2024-05-01 16:46:06 +0200
commitccd56672e80665a78bb89f9606367ba7797e4b45 (patch)
treebf7aebf617166ec5bff686e056a4b860a4559923 /apps/sharebymail
parentd82fb01b0a103777e7d999ecc48b8d63cfb7e802 (diff)
downloadnextcloud-server-ccd56672e80665a78bb89f9606367ba7797e4b45.tar.gz
nextcloud-server-ccd56672e80665a78bb89f9606367ba7797e4b45.zip
refactor: remove non-shallow getSharesInFolder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index f1bb3fe94ca..a219ef47dd3 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -1069,12 +1069,7 @@ class ShareByMailProvider implements IShareProvider {
$qb->innerJoin('s', 'filecache', 'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
- $qb->andWhere($qb->expr()->eq('f.storage', $qb->createNamedParameter($node->getMountPoint()->getNumericStorageId(), IQueryBuilder::PARAM_INT)));
- if ($shallow) {
- $qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
- } else {
- $qb->andWhere($qb->expr()->like('f.path', $qb->createNamedParameter($this->dbConnection->escapeLikeParameter($node->getInternalPath()) . '/%')));
- }
+ $qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
$qb->orderBy('id');