summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-15 20:21:47 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-15 20:21:47 +0100
commitd33e57866500fce77664e958e4a5793af2fc8753 (patch)
treeee2e9eed9b79a8dd0235eb51b7664825b4c75424 /apps/files_sharing/api
parentfcec704174a384f93214a1f2b83bed385e763ff6 (diff)
downloadnextcloud-server-d33e57866500fce77664e958e4a5793af2fc8753.tar.gz
nextcloud-server-d33e57866500fce77664e958e4a5793af2fc8753.zip
[Share 2.0] Add share owner information to OCS Share API
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r--apps/files_sharing/api/share20ocs.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php
index c698dccefb8..e4cc50d9c1a 100644
--- a/apps/files_sharing/api/share20ocs.php
+++ b/apps/files_sharing/api/share20ocs.php
@@ -87,6 +87,8 @@ class Share20OCS {
'parent' => $share->getParent(),
'expiration' => null,
'token' => null,
+ 'uid_file_owner' => $share->getShareOwner()->getUID(),
+ 'displayname_file_owner' => $share->getShareOwner()->getDisplayName(),
];
$path = $share->getPath();