diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-10 10:03:08 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-15 09:21:53 +0100 |
commit | fc77f530d7696e4272a9773f71a7cd181aa458d0 (patch) | |
tree | d9c59164675483c25e325944ea30a37cf10d94f5 /apps/files_sharing/lib | |
parent | 0f238623f6fcbc6605580d79f9705eab9bfcdf5a (diff) | |
download | nextcloud-server-fc77f530d7696e4272a9773f71a7cd181aa458d0.tar.gz nextcloud-server-fc77f530d7696e4272a9773f71a7cd181aa458d0.zip |
Don't show link shares hash in inherited share list
This adds no value at all. Just showing the text "(Shared link)" now.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 7e6b3674b95..4893be25b20 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -222,12 +222,12 @@ class ShareAPIController extends OCSController { $group = $this->groupManager->get($share->getSharedWith()); $result['share_with'] = $share->getSharedWith(); $result['share_with_displayname'] = $group !== null ? $group->getDisplayName() : $share->getSharedWith(); - } else if ($share->getShareType() === Share::SHARE_TYPE_LINK) { + } else if ($share->getShareType() === IShare::TYPE_LINK) { // "share_with" and "share_with_displayname" for passwords of link // shares was deprecated in Nextcloud 15, use "password" instead. $result['share_with'] = $share->getPassword(); - $result['share_with_displayname'] = $share->getPassword(); + $result['share_with_displayname'] = '(' . $this->l->t('Shared link') . ')'; $result['password'] = $share->getPassword(); |