summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-25 17:40:23 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-25 17:40:23 +0100
commita606e8d944f7c2754f00e9c50804b8c2beedc986 (patch)
tree4ffeacb0b99acec9c301d2a4da83dbac465ef86e /lib/public
parente9a57e28fc9b87c0fd84de39a0e4cb305165a9d1 (diff)
downloadnextcloud-server-a606e8d944f7c2754f00e9c50804b8c2beedc986.tar.gz
nextcloud-server-a606e8d944f7c2754f00e9c50804b8c2beedc986.zip
use display name to show share_width and owner information
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index cda583aa073..e1d77e652d5 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -946,6 +946,15 @@ class Share {
continue;
}
}
+
+ // Add display names to result
+ if ( isset($row['share_with']) && $row['share_with'] != '') {
+ $row['share_with_displayname'] = \OCP\User::getDisplayName($row['share_with']);
+ }
+ if ( isset($row['uid_owner']) && $row['uid_owner'] != '') {
+ $row['displayname_owner'] = \OCP\User::getDisplayName($row['uid_owner']);
+ }
+
$items[$row['id']] = $row;
}
if (!empty($items)) {