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:
parent
a3780714fe
commit
8f15e2d57a
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue