summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-27 11:07:49 +0100
committerGitHub <noreply@github.com>2020-01-27 11:07:49 +0100
commitc99c969d5598f1cf9304316907ab4f3f5597079b (patch)
treea72d6ab2c2c73e28adeaa28f21f96f8666be064b
parentbfdfeb460b71df98e67a5f5d8973b253667482bd (diff)
parent2d0a0386426d5222f595db7cd55b081a53647fe2 (diff)
downloadnextcloud-server-c99c969d5598f1cf9304316907ab4f3f5597079b.tar.gz
nextcloud-server-c99c969d5598f1cf9304316907ab4f3f5597079b.zip
Merge pull request #19149 from nextcloud/backport/19115/stable18
[stable18] 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',