Skip to content
Snippets Groups Projects
Commit a4a7cf40 authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix the notification API usage

parent 3ff88c8c
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ class Server2Server { ...@@ -94,7 +94,7 @@ class Server2Server {
$notification = $notificationManager->createNotification(); $notification = $notificationManager->createNotification();
$notification->setApp('files_sharing') $notification->setApp('files_sharing')
->setUser($shareWith) ->setUser($shareWith)
->setTimestamp(time()) ->setDateTime(new \DateTime())
->setObject('remote_share', $remoteId) ->setObject('remote_share', $remoteId)
->setSubject('remote_share', [$user, trim($name, '/')]); ->setSubject('remote_share', [$user, trim($name, '/')]);
......
...@@ -119,4 +119,9 @@ $manager->registerNotifier(function() { ...@@ -119,4 +119,9 @@ $manager->registerNotifier(function() {
return new \OCA\Files_Sharing\Notifier( return new \OCA\Files_Sharing\Notifier(
\OC::$server->getL10NFactory() \OC::$server->getL10NFactory()
); );
}, function() use ($l) {
return [
'id' => 'files_sharing',
'name' => $l->t('Federated sharing'),
];
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment