summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-16 12:09:41 +0100
committerJoas Schilling <coding@schilljs.com>2016-11-16 16:45:08 +0100
commitbdaf334c5359b8e80397d5475f763bb826b274c0 (patch)
tree0c22f7d1258b799765c68f5302487eb5870fcae8 /apps/files_sharing/appinfo
parent81e9836900139d2fda65fa833e735a62e637ab3b (diff)
downloadnextcloud-server-bdaf334c5359b8e80397d5475f763bb826b274c0.tar.gz
nextcloud-server-bdaf334c5359b8e80397d5475f763bb826b274c0.zip
Move file sharing activities to the new API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/app.php8
-rw-r--r--apps/files_sharing/appinfo/info.xml20
2 files changed, 20 insertions, 8 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 850c2c05977..4fed51b1194 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -50,14 +50,6 @@ $eventDispatcher->addListener(
// \OCP\Util::addStyle('files_sharing', 'sharetabview');
-\OC::$server->getActivityManager()->registerExtension(function() {
- return new \OCA\Files_Sharing\Activity(
- \OC::$server->query('L10NFactory'),
- \OC::$server->getURLGenerator(),
- \OC::$server->getActivityManager()
- );
-});
-
$config = \OC::$server->getConfig();
if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml
index 65b8d4af5d1..cff424d223a 100644
--- a/apps/files_sharing/appinfo/info.xml
+++ b/apps/files_sharing/appinfo/info.xml
@@ -23,6 +23,26 @@ Turning the feature off removes shared files and folders on the server for all s
<namespace>Files_Sharing</namespace>
+ <activity>
+ <settings>
+ <setting>OCA\Files_Sharing\Activity\Settings\Shared</setting>
+ <setting>OCA\Files_Sharing\Activity\Settings\RemoteShare</setting>
+ <setting>OCA\Files_Sharing\Activity\Settings\PublicLinks</setting>
+ </settings>
+
+ <filters>
+ <filter>OCA\Files_Sharing\Activity\Filter</filter>
+ </filters>
+
+ <providers>
+ <provider>OCA\Files_Sharing\Activity\Providers\Downloads</provider>
+ <provider>OCA\Files_Sharing\Activity\Providers\Groups</provider>
+ <provider>OCA\Files_Sharing\Activity\Providers\PublicLinks</provider>
+ <provider>OCA\Files_Sharing\Activity\Providers\RemoteShares</provider>
+ <provider>OCA\Files_Sharing\Activity\Providers\Users</provider>
+ </providers>
+ </activity>
+
<background-jobs>
<job>OCA\Files_Sharing\DeleteOrphanedSharesJob</job>
<job>OCA\Files_Sharing\ExpireSharesJob</job>