aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/DefaultShareProvider.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-08 16:05:52 +0200
committerJoas Schilling <coding@schilljs.com>2022-10-08 16:05:52 +0200
commit99953a859b50d2e4d481ada903b38f6b3b87acd7 (patch)
tree16d0ca37be1e4cc8a3f736b062c7139c06cac4ed /lib/private/Share20/DefaultShareProvider.php
parentafdb75d98b19f9d93723866dd09806e3ec1af9b6 (diff)
downloadnextcloud-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.php4
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']);