diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-24 12:43:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-24 12:43:17 +0100 |
commit | 8f15e2d57a6322f682a2f1dfda4f52ee3a70f107 (patch) | |
tree | 1fd0c4546ae0878d601d9904b7ecaee91f9a6f4c | |
parent | a3780714fed21ac8adc0bf56955f39cff312e812 (diff) | |
download | nextcloud-server-8f15e2d57a6322f682a2f1dfda4f52ee3a70f107.tar.gz nextcloud-server-8f15e2d57a6322f682a2f1dfda4f52ee3a70f107.zip |
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>
-rw-r--r-- | apps/files_sharing/lib/Notification/Notifier.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index 6cfa45a649c..a47b04e5b14 100644 --- a/apps/files_sharing/lib/Notification/Notifier.php +++ b/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', |