Skip to content

Commit

Permalink
Merge pull request #50515 from nextcloud/fix/show-share-recipient-in-…
Browse files Browse the repository at this point in the history
…mail

fix: Show recipient email addresses in share owner notification email
  • Loading branch information
nfebe authored Jan 29, 2025
2 parents 826e3ea + 72b6508 commit 812f6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ protected function sendPasswordToOwner(IShare $share, string $password): bool {
$initiator = $this->userManager->get($share->getSharedBy());
$initiatorEMailAddress = ($initiator instanceof IUser) ? $initiator->getEMailAddress() : null;
$initiatorDisplayName = ($initiator instanceof IUser) ? $initiator->getDisplayName() : $share->getSharedBy();
$shareWith = $share->getSharedWith();
$shareWith = implode(', ', $this->getSharedWithEmails($share));

if ($initiatorEMailAddress === null) {
throw new \Exception(
Expand Down

0 comments on commit 812f6f0

Please sign in to comment.