Skip to content

Commit 7211d56

Browse files
committed
fix old shares
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 1f63e33 commit 7211d56

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

appinfo/info.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Users won't be able to find this Circle using Nextcloud search engine.
4747
</dependencies>
4848

4949
<background-jobs>
50+
<job>OCA\Circles\Cron\Maintenance</job>
5051
<job>OCA\Circles\Cron\ContactsExistingShares</job>
5152
<job>OCA\Circles\Cron\GlobalSync</job>
5253
</background-jobs>

lib/Db/SharesRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ public function getSharesForCircle(string $circleId) {
102102
public function getShares(): array {
103103
$qb = $this->getSharesSelectSql();
104104

105+
$expr = $qb->expr();
106+
105107
$this->limitToShareType($qb, self::SHARE_TYPE);
108+
$qb->andWhere($expr->isNull($this->default_select_alias . '.parent'));
106109

107110
$shares = [];
108111
$cursor = $qb->execute();

0 commit comments

Comments
 (0)