add display name to sharee list

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-07-31 13:42:25 +02:00
parent 21477bca77
commit 42f00e80c7
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}
}