diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-24 12:43:17 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2020-01-26 19:44:44 +0000 |
commit | 2d0a0386426d5222f595db7cd55b081a53647fe2 (patch) | |
tree | cd738e66eabd5c4842a907144636dfe93f951c1f /apps/files_sharing | |
parent | 4f087d7af6962a1486b890a1e7c43d55b4a06eb5 (diff) | |
download | nextcloud-server-2d0a0386426d5222f595db7cd55b081a53647fe2.tar.gz nextcloud-server-2d0a0386426d5222f595db7cd55b081a53647fe2.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>
Diffstat (limited to 'apps/files_sharing')
-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', |