summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-24 15:46:38 +0100
committerJoas Schilling <coding@schilljs.com>2016-11-24 16:15:51 +0100
commit5c2ec584400207308241f4e64bf1b2c563c7340a (patch)
tree3ebf65d3304b8f2f296ed7ec298d35fb06a324fc /apps/sharebymail/appinfo
parentd6ade509cf33849edb10b33fb2490b2428f9091b (diff)
downloadnextcloud-server-5c2ec584400207308241f4e64bf1b2c563c7340a.tar.gz
nextcloud-server-5c2ec584400207308241f4e64bf1b2c563c7340a.zip
Move ShareByMail activities to new API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/sharebymail/appinfo')
-rw-r--r--apps/sharebymail/appinfo/app.php7
-rw-r--r--apps/sharebymail/appinfo/info.xml6
2 files changed, 6 insertions, 7 deletions
diff --git a/apps/sharebymail/appinfo/app.php b/apps/sharebymail/appinfo/app.php
index 0723b2dcc5f..5ef7b6f18cb 100644
--- a/apps/sharebymail/appinfo/app.php
+++ b/apps/sharebymail/appinfo/app.php
@@ -22,10 +22,3 @@
$settings = new \OCA\ShareByMail\Settings();
\OCP\Util::connectHook('\OCP\Config', 'js', $settings, 'announceShareProvider');
-
-\OC::$server->getActivityManager()->registerExtension(function() {
- return new \OCA\ShareByMail\Activity(
- \OC::$server->query('L10NFactory'),
- \OC::$server->getActivityManager()
- );
-});
diff --git a/apps/sharebymail/appinfo/info.xml b/apps/sharebymail/appinfo/info.xml
index 6c4882d349f..1b3aa01bc67 100644
--- a/apps/sharebymail/appinfo/info.xml
+++ b/apps/sharebymail/appinfo/info.xml
@@ -12,4 +12,10 @@
<nextcloud min-version="11" max-version="11" />
</dependencies>
<default_enable/>
+
+ <activity>
+ <providers>
+ <provider>OCA\ShareByMail\Activity</provider>
+ </providers>
+ </activity>
</info>