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
|
@ -176,7 +176,7 @@ class Notifier implements INotifier {
|
||||||
'share' => [
|
'share' => [
|
||||||
'type' => 'highlight',
|
'type' => 'highlight',
|
||||||
'id' => $notification->getObjectId(),
|
'id' => $notification->getObjectId(),
|
||||||
'name' => $share->getNode()->getName(),
|
'name' => $share->getTarget(),
|
||||||
],
|
],
|
||||||
'user' => [
|
'user' => [
|
||||||
'type' => 'user',
|
'type' => 'user',
|
||||||
|
@ -212,7 +212,7 @@ class Notifier implements INotifier {
|
||||||
'share' => [
|
'share' => [
|
||||||
'type' => 'highlight',
|
'type' => 'highlight',
|
||||||
'id' => $notification->getObjectId(),
|
'id' => $notification->getObjectId(),
|
||||||
'name' => $share->getNode()->getName(),
|
'name' => $share->getTarget(),
|
||||||
],
|
],
|
||||||
'group' => [
|
'group' => [
|
||||||
'type' => 'user-group',
|
'type' => 'user-group',
|
||||||
|
|
Loading…
Reference in New Issue