diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-29 20:31:12 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-29 20:31:12 +0200 |
commit | 48b5c1d5f934fb4f6c58bf196b81ee8089217e52 (patch) | |
tree | b894aebb2355470b46c330131f3a748fa469efcb /lib/public | |
parent | 2e1e283592e366f7a43a1a405e57520d0be13ff0 (diff) | |
download | nextcloud-server-48b5c1d5f934fb4f6c58bf196b81ee8089217e52.tar.gz nextcloud-server-48b5c1d5f934fb4f6c58bf196b81ee8089217e52.zip |
initial implementation of activity manager
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/activity/imanager.php | 8 | ||||
-rw-r--r-- | lib/public/share.php | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/activity/imanager.php b/lib/public/activity/imanager.php index da7e9d4b662..9cba2db7e7f 100644 --- a/lib/public/activity/imanager.php +++ b/lib/public/activity/imanager.php @@ -25,6 +25,14 @@ namespace OCP\Activity; interface IManager { + /** + * @param $app + * @param $subject + * @param $message + * @param $file + * @param $link + * @return mixed + */ function publishActivity($app, $subject, $message, $file, $link); /** diff --git a/lib/public/share.php b/lib/public/share.php index 6c5783f1179..ff11aad1a12 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -1400,6 +1400,11 @@ class Share { 'id' => $parent, 'token' => $token )); + + // hook up activity manager + $subject = 'Something has been shared'; + \OC::$server->getActivityManager()->publishActivity('files_sharing', $subject, '', '', ''); + if ($parentFolder === true) { // Return parent folders to preserve file target paths for potential children return $parentFolders; |