summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/FederatedShareProvider.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-06-23 14:19:55 +0200
committerRobin Appelman <icewind@owncloud.com>2016-06-23 14:19:55 +0200
commit040c5411386d05f64c6dc2a6e3d52ba5c3af9f96 (patch)
treec086a759c411e3edb9ee19aba925b93fbaa8ff59 /apps/federatedfilesharing/lib/FederatedShareProvider.php
parent1e1903e4feffb98bde50cf41618d6bb3ef11c88a (diff)
downloadnextcloud-server-040c5411386d05f64c6dc2a6e3d52ba5c3af9f96.tar.gz
nextcloud-server-040c5411386d05f64c6dc2a6e3d52ba5c3af9f96.zip
Remove a fed share from the local table before trying to notify the remote server
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 4892908c329..01737256769 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -473,6 +473,8 @@ class FederatedShareProvider implements IShareProvider {
$isOwner = false;
+ $this->removeShareFromTable($share);
+
// if the local user is the owner we can send the unShare request directly...
if ($this->userManager->userExists($share->getShareOwner())) {
$this->notifications->sendRemoteUnShare($remote, $share->getId(), $share->getToken());
@@ -494,8 +496,6 @@ class FederatedShareProvider implements IShareProvider {
}
$this->notifications->sendRevokeShare($remote, $remoteId, $share->getToken());
}
-
- $this->removeShareFromTable($share);
}
/**