aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/hooks.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/hooks.php')
-rw-r--r--apps/files_sharing/lib/hooks.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/hooks.php b/apps/files_sharing/lib/hooks.php
index 166905b9aa4..e3f24d02268 100644
--- a/apps/files_sharing/lib/hooks.php
+++ b/apps/files_sharing/lib/hooks.php
@@ -25,16 +25,22 @@
namespace OCA\Files_Sharing;
use OC\Files\Filesystem;
+use OCA\FederatedFileSharing\DiscoveryManager;
class Hooks {
public static function deleteUser($params) {
+ $discoveryManager = new DiscoveryManager(
+ \OC::$server->getMemCacheFactory(),
+ \OC::$server->getHTTPClientService()
+ );
$manager = new External\Manager(
\OC::$server->getDatabaseConnection(),
\OC\Files\Filesystem::getMountManager(),
\OC\Files\Filesystem::getLoader(),
\OC::$server->getHTTPHelper(),
\OC::$server->getNotificationManager(),
+ $discoveryManager,
$params['uid']);
$manager->removeUserShares($params['uid']);