summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-26 20:43:51 +0100
committerGitHub <noreply@github.com>2020-01-26 20:43:51 +0100
commit1e0e09e5cedf49a67143f4a94ef1c350cc41884f (patch)
treeb5265172486d3f1299ef2ac4e13ce28e2f89dde5
parentb6f06e1f8c7fa794592d1ea8513c470e7339322f (diff)
parent8f15e2d57a6322f682a2f1dfda4f52ee3a70f107 (diff)
downloadnextcloud-server-1e0e09e5cedf49a67143f4a94ef1c350cc41884f.tar.gz
nextcloud-server-1e0e09e5cedf49a67143f4a94ef1c350cc41884f.zip
Merge pull request #19115 from nextcloud/fix/share_accepting/do_not_use_node_yet
Use the target for file notifications
-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',