aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-09-10 08:34:20 +0200
committerGitHub <noreply@github.com>2021-09-10 08:34:20 +0200
commit78d62063ff0617ca594bd1a45c5be3ff592b206c (patch)
treef862af71ee9c4becc4fdc8124ea59c2124b2186b /apps/files_sharing/lib/Controller
parent347b59f2fd43c3299c1cddbb17ec5d49a12ede4a (diff)
parent763136ab48cc54fda27fa137392020fda900e114 (diff)
downloadnextcloud-server-78d62063ff0617ca594bd1a45c5be3ff592b206c.tar.gz
nextcloud-server-78d62063ff0617ca594bd1a45c5be3ff592b206c.zip
Merge pull request #28422 from nextcloud/enh/27465/notification-email
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 668bbb7cca8..c9853f1e12c 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -238,7 +238,7 @@ class ShareAPIController extends OCSController {
$result['share_with'] = $share->getSharedWith();
$result['share_with_displayname'] = $sharedWith !== null ? $sharedWith->getDisplayName() : $share->getSharedWith();
$result['share_with_displayname_unique'] = $sharedWith !== null ? (
- $sharedWith->getEMailAddress() !== '' ? $sharedWith->getEMailAddress() : $sharedWith->getUID()
+ !empty($sharedWith->getSystemEMailAddress()) ? $sharedWith->getSystemEMailAddress() : $sharedWith->getUID()
) : $share->getSharedWith();
$result['status'] = [];