summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-12-09 22:39:28 +0100
committerGitHub <noreply@github.com>2022-12-09 22:39:28 +0100
commit2f7a1fca5f1e2a14bcda169b9e8e8da14e720f2c (patch)
tree72a1cca53ce8e2275ce0919ab2c5e4f555b9d42f /lib/private/Share20
parent21576ff271a7cf4b4c0cc48a223bbdb4eda7351d (diff)
parente674087ebf5630834248098eefa1004a98f46468 (diff)
downloadnextcloud-server-2f7a1fca5f1e2a14bcda169b9e8e8da14e720f2c.tar.gz
nextcloud-server-2f7a1fca5f1e2a14bcda169b9e8e8da14e720f2c.zip
Merge pull request #34477 from nextcloud/bugfix/noid/sharee-recommendations-show-group-id
Show group name instead of group id as recommendation
Diffstat (limited to 'lib/private/Share20')
-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']);