aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-05-17 17:41:25 +0200
committerGitHub <noreply@github.com>2024-05-17 17:41:25 +0200
commit54afea4b01385106a241a5161b3894e669716107 (patch)
tree871d0cf522eaeff4e9bbc84924f382c5a8303f4c /apps/sharebymail
parent495d3979367eb259aa0ff1ad8ee1c6f487995c31 (diff)
parentccd56672e80665a78bb89f9606367ba7797e4b45 (diff)
downloadnextcloud-server-54afea4b01385106a241a5161b3894e669716107.tar.gz
nextcloud-server-54afea4b01385106a241a5161b3894e669716107.zip
Merge pull request #44460 from nextcloud/remove-non-shallow-in-folder
refactor: remove non-shallow getSharesInFolder
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');