summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2019-07-31 13:42:25 +0200
committertobiasKaminsky <tobias@kaminsky.me>2019-07-31 13:42:25 +0200
commit42f00e80c7175ab199cb6d2bfae358c0cbb0517b (patch)
tree51069241185e30b571201b9294e7fdfa40d50164 /apps/dav
parent21477bca775987d898735485eeb4fb6424eb04e6 (diff)
downloadnextcloud-server-42f00e80c7175ab199cb6d2bfae358c0cbb0517b.tar.gz
nextcloud-server-42f00e80c7175ab199cb6d2bfae358c0cbb0517b.zip
add display name to sharee list
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/ShareeList.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ShareeList.php b/apps/dav/lib/Connector/Sabre/ShareeList.php
index 8bfd992468d..642b57b0c7b 100644
--- a/apps/dav/lib/Connector/Sabre/ShareeList.php
+++ b/apps/dav/lib/Connector/Sabre/ShareeList.php
@@ -52,8 +52,9 @@ class ShareeList implements XmlSerializable {
function xmlSerialize(Writer $writer) {
foreach ($this->shares as $share) {
$writer->startElement('{' . self::NS_NEXTCLOUD . '}sharee');
- $writer->writeAttribute('type', $share->getShareType());
- $writer->write($share->getSharedWith());
+ $writer->writeElement("id", $share->getSharedWith());
+ $writer->writeElement("displayName", $share->getSharedWithDisplayName());
+ $writer->writeElement('type', $share->getShareType());
$writer->endElement();
}
}