Merge pull request #19149 from nextcloud/backport/19115/stable18

[stable18] Use the target for file notifications
This commit is contained in:
Roeland Jago Douma 2020-01-27 11:07:49 +01:00 committed by GitHub
commit c99c969d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',