Browse Source

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>
pull/19115/head
Roeland Jago Douma 7 years ago
parent
commit
8f15e2d57a
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 4
      apps/files_sharing/lib/Notification/Notifier.php

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

Loading…
Cancel
Save