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>
This commit is contained in:
Roeland Jago Douma 2020-01-24 12:43:17 +01:00 committed by Backportbot
parent 4f087d7af6
commit 2d0a038642

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