diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-01-07 09:40:41 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2020-01-07 09:40:41 -0100 |
commit | fc54df81d0b57dd743dae200e61805a18ad0abcb (patch) | |
tree | 46707b7d31489a5ce6c975838841eab4fdeb866f /apps/federatedfilesharing/lib | |
parent | 33039a4c97a6deb7b0a2c1e38111e4eaa50a2818 (diff) | |
download | nextcloud-server-fc54df81d0b57dd743dae200e61805a18ad0abcb.tar.gz nextcloud-server-fc54df81d0b57dd743dae200e61805a18ad0abcb.zip |
remove non-circles-generated shares only
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 859dcaf4ed8..82f47d61ded 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -599,7 +599,8 @@ class FederatedShareProvider implements IShareProvider { private function removeShareFromTableById($shareId) { $qb = $this->dbConnection->getQueryBuilder(); $qb->delete('share') - ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId))); + ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId))) + ->where($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE))); $qb->execute(); $qb->delete('federated_reshares') |