Fix the notification API usage

remotes/origin/users-ajaxloadgroups
Joas Schilling 10 years ago
parent 3ff88c8c84
commit a4a7cf40a1
  1. 2
      apps/files_sharing/api/server2server.php
  2. 5
      apps/files_sharing/appinfo/app.php

@ -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…
Cancel
Save