X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fxrd.php;h=9c6d9f3ab70044a4d8573ff713c38778fca51f88;hb=a3c4dca90dd2eec92ff600393d09204ba10df230;hp=c8cffed9cde255fd14decbb0d68c2353fcfee748;hpb=8aa9c271dffe6ec6766b94486c0635c9db588db7;p=quix0rs-gnu-social.git diff --git a/lib/xrd.php b/lib/xrd.php index c8cffed9cd..9c6d9f3ab7 100644 --- a/lib/xrd.php +++ b/lib/xrd.php @@ -130,14 +130,24 @@ class XRD foreach ($this->links as $link) { $titles = array(); + $properties = array(); if (isset($link['title'])) { $titles = $link['title']; unset($link['title']); } + if (isset($link['property'])) { + $properties = $link['property']; + unset($link['property']); + } $xs->elementStart('Link', $link); foreach ($titles as $title) { $xs->element('Title', null, $title); } + foreach ($properties as $property) { + $xs->element('Property', + array('type' => $property['type']), + $property['value']); + } $xs->elementEnd('Link'); }