Fix the notification API usage
This commit is contained in:
parent
3ff88c8c84
commit
a4a7cf40a1
|
@ -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, '/')]);
|
||||
|
||||
|
|
|
@ -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'),
|
||||
];
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue