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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-24 14:43:17 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-24 14:43:17 +0300
commit8f15e2d57a6322f682a2f1dfda4f52ee3a70f107 (patch)
tree1fd0c4546ae0878d601d9904b7ecaee91f9a6f4c
parenta3780714fed21ac8adc0bf56955f39cff312e812 (diff)
Use the target for file notifications
The node is not yet accessible if you did not accept the share yet. So trying to get it results in an acception. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--apps/files_sharing/lib/Notification/Notifier.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php
index 6cfa45a649c..a47b04e5b14 100644
--- a/apps/files_sharing/lib/Notification/Notifier.php
+++ b/apps/files_sharing/lib/Notification/Notifier.php
@@ -176,7 +176,7 @@ class Notifier implements INotifier {
'share' => [
'type' => 'highlight',
'id' => $notification->getObjectId(),
- 'name' => $share->getNode()->getName(),
+ 'name' => $share->getTarget(),
],
'user' => [
'type' => 'user',
@@ -212,7 +212,7 @@ class Notifier implements INotifier {
'share' => [
'type' => 'highlight',
'id' => $notification->getObjectId(),
- 'name' => $share->getNode()->getName(),
+ 'name' => $share->getTarget(),
],
'group' => [
'type' => 'user-group',