diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index 6cfa45a649cde876afff93c774bae5abc0d7207f..a47b04e5b14af2c0ac32a73dcb10b527a87e1831 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',