From fc54df81d0b57dd743dae200e61805a18ad0abcb Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 7 Jan 2020 09:40:41 -0100 Subject: remove non-circles-generated shares only Signed-off-by: Maxence Lange --- apps/federatedfilesharing/lib/FederatedShareProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3