Fix the notification API usage

This commit is contained in:
Joas Schilling 2016-02-09 16:02:53 +01:00
parent 3ff88c8c84
commit a4a7cf40a1
2 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class Server2Server {
$notification = $notificationManager->createNotification();
$notification->setApp('files_sharing')
->setUser($shareWith)
->setTimestamp(time())
->setDateTime(new \DateTime())
->setObject('remote_share', $remoteId)
->setSubject('remote_share', [$user, trim($name, '/')]);

View File

@ -119,4 +119,9 @@ $manager->registerNotifier(function() {
return new \OCA\Files_Sharing\Notifier(
\OC::$server->getL10NFactory()
);
}, function() use ($l) {
return [
'id' => 'files_sharing',
'name' => $l->t('Federated sharing'),
];
});