diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-10-07 12:32:16 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-14 11:14:59 +0100 |
commit | 102402bfcbad8a0c1730b4d88172bcee28c50df7 (patch) | |
tree | 65893ae342b53f7529d70ea10548c5b62ccae5e2 /apps/files_sharing/lib | |
parent | 131fcac91ed0468d6564eb268c85b6665e06f330 (diff) | |
download | nextcloud-server-102402bfcbad8a0c1730b4d88172bcee28c50df7.tar.gz nextcloud-server-102402bfcbad8a0c1730b4d88172bcee28c50df7.zip |
Show unique displayname context in the user share list entries
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 65de654be92..16b0e8fcc68 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -235,6 +235,9 @@ class ShareAPIController extends OCSController { $sharedWith = $this->userManager->get($share->getSharedWith()); $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() + ) : $share->getSharedWith(); $result['status'] = []; $userStatuses = $this->userStatusManager->getUserStatuses([$share->getSharedWith()]); |