remove non-circles-generated shares only
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
33039a4c97
commit
fc54df81d0
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue