diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-08 16:05:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-08 16:05:52 +0200 |
commit | 99953a859b50d2e4d481ada903b38f6b3b87acd7 (patch) | |
tree | 16d0ca37be1e4cc8a3f736b062c7139c06cac4ed /lib/private/Share20/DefaultShareProvider.php | |
parent | afdb75d98b19f9d93723866dd09806e3ec1af9b6 (diff) | |
download | nextcloud-server-99953a859b50d2e4d481ada903b38f6b3b87acd7.tar.gz nextcloud-server-99953a859b50d2e4d481ada903b38f6b3b87acd7.zip |
Show group name instead of group id as recommendation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index c78cf62e069..a5a5568788d 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -1087,6 +1087,10 @@ class DefaultShareProvider implements IShareProvider { } } elseif ($share->getShareType() === IShare::TYPE_GROUP) { $share->setSharedWith($data['share_with']); + $group = $this->groupManager->get($data['share_with']); + if ($group !== null) { + $share->setSharedWithDisplayName($group->getDisplayName()); + } } elseif ($share->getShareType() === IShare::TYPE_LINK) { $share->setPassword($data['password']); $share->setSendPasswordByTalk((bool)$data['password_by_talk']); |