Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-11-08 15:52:56 +0300
committerJoas Schilling <coding@schilljs.com>2018-11-09 15:30:28 +0300
commit876165bfde2924f10db94f886250fd616a9501bf (patch)
tree4effc6a5a068fd4ffc14bf2a5522c0bd0280d999 /lib/Notification/Notifier.php
parent86f25fb2a5da07570016bb74f95a2fccd8c1558c (diff)
Make the notification clickable again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r--lib/Notification/Notifier.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index 416fdb6b7..e62c56f82 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -465,16 +465,10 @@ class Notifier implements INotifier {
}
try {
- $segments = explode('/', $share->getNode()->getPath(), 4);
- if (!isset($segments[3])) {
- throw new \OCP\Files\NotFoundException('File not in /user/files/');
- }
$file = [
- 'type' => 'file',
+ 'type' => 'highlight',
'id' => $share->getNodeId(),
'name' => $share->getNode()->getName(),
- 'path' => $segments[3],
- 'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNodeId()]),
];
} catch (\OCP\Files\NotFoundException $e) {
throw new \InvalidArgumentException('Unknown file');