diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-07 17:08:56 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-08 17:58:52 +0300 |
commit | 25bcd71d029dd301321f797710d6e628540adb04 (patch) | |
tree | 54f794ce839e3d1a3714c252e95d79c6a6c20ac9 /apps/sharebymail/appinfo | |
parent | 3bc643ec2368a940a683e150c2ca3cc0e9df558d (diff) |
add activity if a file was shared by mail
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/sharebymail/appinfo')
-rw-r--r-- | apps/sharebymail/appinfo/app.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/sharebymail/appinfo/app.php b/apps/sharebymail/appinfo/app.php index 5ef7b6f18cb..0723b2dcc5f 100644 --- a/apps/sharebymail/appinfo/app.php +++ b/apps/sharebymail/appinfo/app.php @@ -22,3 +22,10 @@ $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() + ); +}); |