|
|
|
@ -14,6 +14,7 @@ use OCP\Files\FileInfo;
|
|
|
|
use OCP\Files\IRootFolder;
|
|
|
|
use OCP\Files\IRootFolder;
|
|
|
|
use OCP\IURLGenerator;
|
|
|
|
use OCP\IURLGenerator;
|
|
|
|
use OCP\L10N\IFactory;
|
|
|
|
use OCP\L10N\IFactory;
|
|
|
|
|
|
|
|
use OCP\Notification\AlreadyProcessedException;
|
|
|
|
use OCP\Notification\IAction;
|
|
|
|
use OCP\Notification\IAction;
|
|
|
|
use OCP\Notification\INotification;
|
|
|
|
use OCP\Notification\INotification;
|
|
|
|
use OCP\Notification\INotifier;
|
|
|
|
use OCP\Notification\INotifier;
|
|
|
|
@ -51,8 +52,8 @@ class Notifier implements INotifier {
|
|
|
|
$fileId = $params['fileId'];
|
|
|
|
$fileId = $params['fileId'];
|
|
|
|
|
|
|
|
|
|
|
|
$node = $this->root->getUserFolder($notification->getUser())->getFirstNodeById($fileId);
|
|
|
|
$node = $this->root->getUserFolder($notification->getUser())->getFirstNodeById($fileId);
|
|
|
|
if (!$node) {
|
|
|
|
if ($node === null) {
|
|
|
|
throw new UnknownNotificationException();
|
|
|
|
throw new AlreadyProcessedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$path = rtrim($node->getPath(), '/');
|
|
|
|
$path = rtrim($node->getPath(), '/');
|
|
|
|
|