diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-03 17:29:12 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-04-08 10:47:55 +0200 |
commit | 17b141337a606bcd9246cf69f22aa80f44d2d69c (patch) | |
tree | 8b5ceed64ad7093bbdf4962f8ea514d8ed9150d6 /apps/files_sharing/appinfo | |
parent | 6c327f8331617652ef0b268d51edc6a23624e33c (diff) | |
download | nextcloud-server-17b141337a606bcd9246cf69f22aa80f44d2d69c.tar.gz nextcloud-server-17b141337a606bcd9246cf69f22aa80f44d2d69c.zip |
Delete orphaned shares in a background job
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index a222973fc34..a0448f7a6a7 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -51,6 +51,8 @@ OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); OCP\Util::addScript('files_sharing', 'share'); OCP\Util::addScript('files_sharing', 'external'); +\OC::$server->getJobList()->add('OCA\Files_sharing\Lib\DeleteOrphanedSharesJob'); + \OC::$server->getActivityManager()->registerExtension(function() { return new \OCA\Files_Sharing\Activity( \OC::$server->query('L10NFactory'), |